An editor feature profile can be used to disable specific features of the Godot editor. When disabled, the features won't appear in the editor, which makes the editor less cluttered. This is useful in education settings to reduce confusion or when working in a team. For example, artists and level designers could use a feature profile that disables the script editor to avoid accidentally making changes to files they aren't supposed to edit.
To manage editor feature profiles visually, use Editor > Manage Feature Profiles... at the top of the editor window.
Constructor
Methods
getFeatureName(feature:EditorFeatureProfile_Feature):String
Returns the specified feature
's human-readable name.
isClassDisabled(className:String):Bool
Returns true
if the class specified by class_name
is disabled. When disabled, the class won't appear in the Create New Node dialog.
isClassEditorDisabled(className:String):Bool
Returns true
if editing for the class specified by class_name
is disabled. When disabled, the class will still appear in the Create New Node dialog but the inspector will be read-only when selecting a node that extends the class.
isClassPropertyDisabled(className:String, property:String):Bool
Returns true
if property
is disabled in the class specified by class_name
. When a property is disabled, it won't appear in the inspector when selecting a node that extends the class specified by class_name
.
isFeatureDisabled(feature:EditorFeatureProfile_Feature):Bool
Returns true
if the feature
is disabled. When a feature is disabled, it will disappear from the editor entirely.
loadFromFile(path:String):Error
Loads an editor feature profile from a file. The file must follow the JSON format obtained by using the feature profile manager's Export button or the godot.EditorFeatureProfile.saveToFile
method.
saveToFile(path:String):Error
Saves the editor feature profile to a file in JSON format. It can then be imported using the feature profile manager's Import button or the godot.EditorFeatureProfile.loadFromFile
button.
setDisableClass(className:String, disable:Bool):Void
If disable
is true
, disables the class specified by class_name
. When disabled, the class won't appear in the Create New Node dialog.
setDisableClassEditor(className:String, disable:Bool):Void
If disable
is true
, disables editing for the class specified by class_name
. When disabled, the class will still appear in the Create New Node dialog but the inspector will be read-only when selecting a node that extends the class.
setDisableClassProperty(className:String, property:String, disable:Bool):Void
If disable
is true
, disables editing for property
in the class specified by class_name
. When a property is disabled, it won't appear in the inspector when selecting a node that extends the class specified by class_name
.
setDisableFeature(feature:EditorFeatureProfile_Feature, disable:Bool):Void
If disable
is true
, disables the editor feature specified in feature
. When a feature is disabled, it will disappear from the editor entirely.