:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/EditorFeatureProfile.xml. .. _class_EditorFeatureProfile: EditorFeatureProfile ==================== **Inherits:** :ref:`Reference` **<** :ref:`Object` An editor feature profile which can be used to disable specific features. .. rst-class:: classref-introduction-group Description ----------- 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. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_feature_name` **(** :ref:`Feature` feature **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_class_disabled` **(** :ref:`String` class_name **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_class_editor_disabled` **(** :ref:`String` class_name **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_class_property_disabled` **(** :ref:`String` class_name, :ref:`String` property **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_feature_disabled` **(** :ref:`Feature` feature **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load_from_file` **(** :ref:`String` path **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save_to_file` **(** :ref:`String` path **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_disable_class` **(** :ref:`String` class_name, :ref:`bool` disable **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_disable_class_editor` **(** :ref:`String` class_name, :ref:`bool` disable **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_disable_class_property` **(** :ref:`String` class_name, :ref:`String` property, :ref:`bool` disable **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_disable_feature` **(** :ref:`Feature` feature, :ref:`bool` disable **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_EditorFeatureProfile_Feature: .. rst-class:: classref-enumeration enum **Feature**: .. _class_EditorFeatureProfile_constant_FEATURE_3D: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_3D** = ``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 Node dialog. .. _class_EditorFeatureProfile_constant_FEATURE_SCRIPT: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_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. .. _class_EditorFeatureProfile_constant_FEATURE_ASSET_LIB: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_ASSET_LIB** = ``2`` The AssetLib tab. If this feature is disabled, the AssetLib tab won't display. .. _class_EditorFeatureProfile_constant_FEATURE_SCENE_TREE: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_SCENE_TREE** = ``3`` Scene tree editing. If this feature is disabled, the Scene tree dock will still be visible but will be read-only. .. _class_EditorFeatureProfile_constant_FEATURE_NODE_DOCK: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_NODE_DOCK** = ``4`` The Node dock. If this feature is disabled, signals and groups won't be visible and modifiable from the editor. .. _class_EditorFeatureProfile_constant_FEATURE_FILESYSTEM_DOCK: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_FILESYSTEM_DOCK** = ``5`` The FileSystem dock. If this feature is disabled, the FileSystem dock won't be visible. .. _class_EditorFeatureProfile_constant_FEATURE_IMPORT_DOCK: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_IMPORT_DOCK** = ``6`` The Import dock. If this feature is disabled, the Import dock won't be visible. .. _class_EditorFeatureProfile_constant_FEATURE_MAX: .. rst-class:: classref-enumeration-constant :ref:`Feature` **FEATURE_MAX** = ``7`` Represents the size of the :ref:`Feature` enum. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_EditorFeatureProfile_method_get_feature_name: .. rst-class:: classref-method :ref:`String` **get_feature_name** **(** :ref:`Feature` feature **)** Returns the specified ``feature``'s human-readable name. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_is_class_disabled: .. rst-class:: classref-method :ref:`bool` **is_class_disabled** **(** :ref:`String` class_name **)** |const| Returns ``true`` if the class specified by ``class_name`` is disabled. When disabled, the class won't appear in the Create New Node dialog. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_is_class_editor_disabled: .. rst-class:: classref-method :ref:`bool` **is_class_editor_disabled** **(** :ref:`String` class_name **)** |const| 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. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_is_class_property_disabled: .. rst-class:: classref-method :ref:`bool` **is_class_property_disabled** **(** :ref:`String` class_name, :ref:`String` property **)** |const| 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``. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_is_feature_disabled: .. rst-class:: classref-method :ref:`bool` **is_feature_disabled** **(** :ref:`Feature` feature **)** |const| Returns ``true`` if the ``feature`` is disabled. When a feature is disabled, it will disappear from the editor entirely. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_load_from_file: .. rst-class:: classref-method :ref:`Error` **load_from_file** **(** :ref:`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 :ref:`save_to_file` method. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_save_to_file: .. rst-class:: classref-method :ref:`Error` **save_to_file** **(** :ref:`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 :ref:`load_from_file` method. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_set_disable_class: .. rst-class:: classref-method void **set_disable_class** **(** :ref:`String` class_name, :ref:`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. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_set_disable_class_editor: .. rst-class:: classref-method void **set_disable_class_editor** **(** :ref:`String` class_name, :ref:`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. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_set_disable_class_property: .. rst-class:: classref-method void **set_disable_class_property** **(** :ref:`String` class_name, :ref:`String` property, :ref:`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``. .. rst-class:: classref-item-separator ---- .. _class_EditorFeatureProfile_method_set_disable_feature: .. rst-class:: classref-method void **set_disable_feature** **(** :ref:`Feature` feature, :ref:`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. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`