reckfellENGINE

EditorFeatureProfile

Editor interface restriction data saved in .profile files.

On this page
class EditorFeatureProfileReckfellSharpEditorInherits RefCounted

A profile can hide workspaces, classes and properties in editor tools. It does not remove project data or engine classes, shrink exports or enforce permissions. SetDisable*() changes a data object; SaveToFile()/LoadFromFile() use JSON without activating a profile.

Apply through Editor → Manage Editor Features… → Import → Make Current; Reset to Default restores the usual interface. Native class and contextual-editor restrictions inherit, while IsClassPropertyDisabled() queries an exact class/property pair.

Creation, sharing and a verified C# example.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

EditorFeatureProfileConstructor
# EditorFeatureProfile
C#
public EditorFeatureProfile();

Methods11

GetFeatureNamestring
# GetFeatureName
C#
public string GetFeatureName(EditorFeatureProfile.Feature feature);

Return a readable editor-feature label. Do not use a translatable label as a stable JSON key or rule identifier.

Parameters
NameTypeDefault
featureEditorFeatureProfile.Feature—
feature

A valid Feature entry; Max is the enum size, not a feature.

Returns string

The feature display name.

IsClassDisabledbool
# IsClassDisabled
C#
public bool IsClassDisabled(StringName className);

Check a native-class restriction through ClassDB parents. A true result can be inherited: removing a child's explicit restriction does not override a disabled parent.

Parameters
NameTypeDefault
classNameStringName—
className

A Reckfell native class name, such as Entity3D.

Returns bool

true when the class or a native ancestor is disabled.

IsClassEditorDisabledbool
# IsClassEditorDisabled
C#
public bool IsClassEditorDisabled(StringName className);

Check a class contextual-editor restriction through native ancestors. This is not equivalent to disabling class creation or making the entire Inspector read-only.

Parameters
NameTypeDefault
classNameStringName—
className

A Reckfell native class name, such as Entity3D.

Returns bool

true for an explicit or inherited contextual-editor restriction.

IsClassPropertyDisabledbool
# IsClassPropertyDisabled
C#
public bool IsClassPropertyDisabled(StringName className, StringName property);

Check an exact native class/property pair without traversing parents. The Inspector walks parents itself: false for Sprite2D does not override CanvasItem:modulate. This queries profile data, not complete field visibility.

Parameters
NameTypeDefault
classNameStringName—
propertyStringName—
className

A Reckfell native class name, such as Entity3D.

property

A native property name, such as modulate, not C# Modulate or a translated label.

Returns bool

true only when that exact record exists.

IsFeatureDisabledbool
# IsFeatureDisabled
C#
public bool IsFeatureDisabled(EditorFeatureProfile.Feature feature);

Read a major editor-feature flag. Disabling Feature3D is separate from restricting Entity3D classes. This does not check whether an engine build contains a capability.

Parameters
NameTypeDefault
featureEditorFeatureProfile.Feature—
feature

A valid Feature entry; Max is the enum size, not a feature.

Returns bool

true when the disabled flag is set.

LoadFromFileError
# LoadFromFile
C#
public Error LoadFromFile(string path);

Load feature_profile JSON into this instance without activating it in the editor. In 1.0.0, an absent disabled_features array preserves previous feature flags; create a fresh instance for independent reads. A failure does not promise full state rollback.

Parameters
NameTypeDefault
pathstring—
path

The exported .profile JSON path.

Returns Error

Error.Ok on successful load; otherwise a read or parse error code.

SaveToFileError
# SaveToFile
C#
public Error SaveToFile(string path);

Write a JSON profile with type=feature_profile and restriction arrays. Use .profile for manager import; this is neither ordinary .rdata resource serialization nor profile activation.

Parameters
NameTypeDefault
pathstring—
path

A file path in an existing writable directory.

Returns Error

The save result code; check it before importing the file.

SetDisableClassvoid
# SetDisableClass
C#
public void SetDisableClass(StringName className, bool disable);

Set a native-class restriction in this profile data object. Descendants inherit it during queries. This neither removes engine classes nor automatically activates the profile in the editor.

Parameters
NameTypeDefault
classNameStringName—
disablebool—
className

A Reckfell native class name, such as Entity3D.

disable

true disables the feature; false removes the explicit restriction.

SetDisableClassEditorvoid
# SetDisableClassEditor
C#
public void SetDisableClassEditor(StringName className, bool disable);

Restrict a class's specialized contextual editor. Queries inherit parent rules. Manage class availability and property visibility separately; this setting does not promise to prevent code writes.

Parameters
NameTypeDefault
classNameStringName—
disablebool—
className

A Reckfell native class name, such as Entity3D.

disable

true disables the feature; false removes the explicit restriction.

SetDisableClassPropertyvoid
# SetDisableClassProperty
C#
public void SetDisableClassProperty(StringName className, StringName property, bool disable);

Set an exact class/property restriction. The Inspector accounts for parent records. Before disable=false, check IsClassPropertyDisabled(): in 1.0.0, removing a rule from a class without recorded properties produces a native API error.

Parameters
NameTypeDefault
classNameStringName—
propertyStringName—
disablebool—
className

A Reckfell native class name, such as Entity3D.

property

The exact native property name; the stored data value is not deleted.

disable

true disables the feature; false removes the explicit restriction.

SetDisableFeaturevoid
# SetDisableFeature
C#
public void SetDisableFeature(EditorFeatureProfile.Feature feature, bool disable);

Change an interface flag in the profile object. This neither removes a subsystem, optimizes exports nor applies the profile in the running editor.

Parameters
NameTypeDefault
featureEditorFeatureProfile.Feature—
disablebool—
feature

A valid Feature entry; Max is the enum size, not a feature.

disable

true disables the feature; false removes the explicit restriction.

EditorFeatureProfile.Feature

ValueDescription
AssetLib = 2

The Asset Store tab. If this feature is disabled, the Asset Store tab won't display.

Feature3D = 0

The 3D editor. If this feature is disabled, the 3D editor won't display but 3D nodes will still display in the Create New Entity dialog.

FilesystemDock = 5

The Content Browser. If this feature is disabled, the Content Browser won't be visible.

Game = 8

The Game tab, which allows embedding the game window and selecting nodes by clicking inside of it. If this feature is disabled, the Game tab won't display.

GroupsDock = 10

The Groups dock. If this feature is disabled, groups won't be visible and modifiable from the editor.

HistoryDock = 7

The History dock. If this feature is disabled, the History dock won't be visible.

ImportDock = 6

The Import dock. If this feature is disabled, the Import dock won't be visible.

Max = 11

Represents the size of the EditorFeatureProfile.Feature enum.

NodeDock = 4

The Entity dock. If this feature is disabled, signals and groups won't be visible and modifiable from the editor.

SceneTree = 3

Scene tree editing. If this feature is disabled, the Scene tree dock will still be visible but will be read-only.

Script = 1

The Script tab, which contains the script editor and class reference browser. If this feature is disabled, the Script tab won't display.

SignalsDock = 9

The Signals dock. If this feature is disabled, signals won't be visible and modifiable from the editor.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.