EditorFeatureProfile

An editor feature profile which can be used to disable specific features.

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Feature
enum Feature

Functions

getFeatureName
String getFeatureName(long feature)

Returns the specified feature's human-readable name.

isClassDisabled
bool isClassDisabled(String class_name)

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
bool isClassEditorDisabled(String class_name)

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
bool isClassPropertyDisabled(String class_name, String property)

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
bool isFeatureDisabled(long feature)

Returns true if the feature is disabled. When a feature is disabled, it will disappear from the editor entirely.

loadFromFile
GodotError loadFromFile(String path)

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 saveToFile method.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(EditorFeatureProfile other)
opEquals
bool opEquals(typeof(null) n)
saveToFile
GodotError saveToFile(String path)

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 loadFromFile button.

setDisableClass
void setDisableClass(String class_name, bool disable)

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
void setDisableClassEditor(String class_name, bool disable)

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
void setDisableClassProperty(String class_name, String property, bool disable)

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
void setDisableFeature(long feature, bool disable)

If disable is true, disables the editor feature specified in feature. When a feature is disabled, it will disappear from the editor entirely.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorFeatureProfile _new()

Construct a new instance of EditorFeatureProfile. Note: use memnew!EditorFeatureProfile instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta