class_editorfeatureprofile.rst 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/EditorFeatureProfile.xml.
  6. .. _class_EditorFeatureProfile:
  7. EditorFeatureProfile
  8. ====================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. An editor feature profile which can be used to disable specific features.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. To manage editor feature profiles visually, use **Editor > Manage Feature Profiles...** at the top of the editor window.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`String<class_String>` | :ref:`get_feature_name<class_EditorFeatureProfile_method_get_feature_name>`\ (\ feature\: :ref:`Feature<enum_EditorFeatureProfile_Feature>`\ ) |
  23. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_class_disabled<class_EditorFeatureProfile_method_is_class_disabled>`\ (\ class_name\: :ref:`StringName<class_StringName>`\ ) |const| |
  25. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`is_class_editor_disabled<class_EditorFeatureProfile_method_is_class_editor_disabled>`\ (\ class_name\: :ref:`StringName<class_StringName>`\ ) |const| |
  27. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`bool<class_bool>` | :ref:`is_class_property_disabled<class_EditorFeatureProfile_method_is_class_property_disabled>`\ (\ class_name\: :ref:`StringName<class_StringName>`, property\: :ref:`StringName<class_StringName>`\ ) |const| |
  29. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`bool<class_bool>` | :ref:`is_feature_disabled<class_EditorFeatureProfile_method_is_feature_disabled>`\ (\ feature\: :ref:`Feature<enum_EditorFeatureProfile_Feature>`\ ) |const| |
  31. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`load_from_file<class_EditorFeatureProfile_method_load_from_file>`\ (\ path\: :ref:`String<class_String>`\ ) |
  33. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`save_to_file<class_EditorFeatureProfile_method_save_to_file>`\ (\ path\: :ref:`String<class_String>`\ ) |
  35. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | |void| | :ref:`set_disable_class<class_EditorFeatureProfile_method_set_disable_class>`\ (\ class_name\: :ref:`StringName<class_StringName>`, disable\: :ref:`bool<class_bool>`\ ) |
  37. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | |void| | :ref:`set_disable_class_editor<class_EditorFeatureProfile_method_set_disable_class_editor>`\ (\ class_name\: :ref:`StringName<class_StringName>`, disable\: :ref:`bool<class_bool>`\ ) |
  39. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | |void| | :ref:`set_disable_class_property<class_EditorFeatureProfile_method_set_disable_class_property>`\ (\ class_name\: :ref:`StringName<class_StringName>`, property\: :ref:`StringName<class_StringName>`, disable\: :ref:`bool<class_bool>`\ ) |
  41. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | |void| | :ref:`set_disable_feature<class_EditorFeatureProfile_method_set_disable_feature>`\ (\ feature\: :ref:`Feature<enum_EditorFeatureProfile_Feature>`, disable\: :ref:`bool<class_bool>`\ ) |
  43. +---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. .. rst-class:: classref-section-separator
  45. ----
  46. .. rst-class:: classref-descriptions-group
  47. Enumerations
  48. ------------
  49. .. _enum_EditorFeatureProfile_Feature:
  50. .. rst-class:: classref-enumeration
  51. enum **Feature**: :ref:`🔗<enum_EditorFeatureProfile_Feature>`
  52. .. _class_EditorFeatureProfile_constant_FEATURE_3D:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_3D** = ``0``
  55. 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.
  56. .. _class_EditorFeatureProfile_constant_FEATURE_SCRIPT:
  57. .. rst-class:: classref-enumeration-constant
  58. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_SCRIPT** = ``1``
  59. The Script tab, which contains the script editor and class reference browser. If this feature is disabled, the Script tab won't display.
  60. .. _class_EditorFeatureProfile_constant_FEATURE_ASSET_LIB:
  61. .. rst-class:: classref-enumeration-constant
  62. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_ASSET_LIB** = ``2``
  63. The AssetLib tab. If this feature is disabled, the AssetLib tab won't display.
  64. .. _class_EditorFeatureProfile_constant_FEATURE_SCENE_TREE:
  65. .. rst-class:: classref-enumeration-constant
  66. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_SCENE_TREE** = ``3``
  67. Scene tree editing. If this feature is disabled, the Scene tree dock will still be visible but will be read-only.
  68. .. _class_EditorFeatureProfile_constant_FEATURE_NODE_DOCK:
  69. .. rst-class:: classref-enumeration-constant
  70. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_NODE_DOCK** = ``4``
  71. The Node dock. If this feature is disabled, signals and groups won't be visible and modifiable from the editor.
  72. .. _class_EditorFeatureProfile_constant_FEATURE_FILESYSTEM_DOCK:
  73. .. rst-class:: classref-enumeration-constant
  74. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_FILESYSTEM_DOCK** = ``5``
  75. The FileSystem dock. If this feature is disabled, the FileSystem dock won't be visible.
  76. .. _class_EditorFeatureProfile_constant_FEATURE_IMPORT_DOCK:
  77. .. rst-class:: classref-enumeration-constant
  78. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_IMPORT_DOCK** = ``6``
  79. The Import dock. If this feature is disabled, the Import dock won't be visible.
  80. .. _class_EditorFeatureProfile_constant_FEATURE_HISTORY_DOCK:
  81. .. rst-class:: classref-enumeration-constant
  82. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_HISTORY_DOCK** = ``7``
  83. The History dock. If this feature is disabled, the History dock won't be visible.
  84. .. _class_EditorFeatureProfile_constant_FEATURE_GAME:
  85. .. rst-class:: classref-enumeration-constant
  86. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_GAME** = ``8``
  87. 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.
  88. .. _class_EditorFeatureProfile_constant_FEATURE_MAX:
  89. .. rst-class:: classref-enumeration-constant
  90. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_MAX** = ``9``
  91. Represents the size of the :ref:`Feature<enum_EditorFeatureProfile_Feature>` enum.
  92. .. rst-class:: classref-section-separator
  93. ----
  94. .. rst-class:: classref-descriptions-group
  95. Method Descriptions
  96. -------------------
  97. .. _class_EditorFeatureProfile_method_get_feature_name:
  98. .. rst-class:: classref-method
  99. :ref:`String<class_String>` **get_feature_name**\ (\ feature\: :ref:`Feature<enum_EditorFeatureProfile_Feature>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_get_feature_name>`
  100. Returns the specified ``feature``'s human-readable name.
  101. .. rst-class:: classref-item-separator
  102. ----
  103. .. _class_EditorFeatureProfile_method_is_class_disabled:
  104. .. rst-class:: classref-method
  105. :ref:`bool<class_bool>` **is_class_disabled**\ (\ class_name\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_EditorFeatureProfile_method_is_class_disabled>`
  106. Returns ``true`` if the class specified by ``class_name`` is disabled. When disabled, the class won't appear in the Create New Node dialog.
  107. .. rst-class:: classref-item-separator
  108. ----
  109. .. _class_EditorFeatureProfile_method_is_class_editor_disabled:
  110. .. rst-class:: classref-method
  111. :ref:`bool<class_bool>` **is_class_editor_disabled**\ (\ class_name\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_EditorFeatureProfile_method_is_class_editor_disabled>`
  112. 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.
  113. .. rst-class:: classref-item-separator
  114. ----
  115. .. _class_EditorFeatureProfile_method_is_class_property_disabled:
  116. .. rst-class:: classref-method
  117. :ref:`bool<class_bool>` **is_class_property_disabled**\ (\ class_name\: :ref:`StringName<class_StringName>`, property\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_EditorFeatureProfile_method_is_class_property_disabled>`
  118. 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``.
  119. .. rst-class:: classref-item-separator
  120. ----
  121. .. _class_EditorFeatureProfile_method_is_feature_disabled:
  122. .. rst-class:: classref-method
  123. :ref:`bool<class_bool>` **is_feature_disabled**\ (\ feature\: :ref:`Feature<enum_EditorFeatureProfile_Feature>`\ ) |const| :ref:`🔗<class_EditorFeatureProfile_method_is_feature_disabled>`
  124. Returns ``true`` if the ``feature`` is disabled. When a feature is disabled, it will disappear from the editor entirely.
  125. .. rst-class:: classref-item-separator
  126. ----
  127. .. _class_EditorFeatureProfile_method_load_from_file:
  128. .. rst-class:: classref-method
  129. :ref:`Error<enum_@GlobalScope_Error>` **load_from_file**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_load_from_file>`
  130. 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<class_EditorFeatureProfile_method_save_to_file>` method.
  131. \ **Note:** Feature profiles created via the user interface are loaded from the ``feature_profiles`` directory, as a file with the ``.profile`` extension. The editor configuration folder can be found by using :ref:`EditorPaths.get_config_dir<class_EditorPaths_method_get_config_dir>`.
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_EditorFeatureProfile_method_save_to_file:
  135. .. rst-class:: classref-method
  136. :ref:`Error<enum_@GlobalScope_Error>` **save_to_file**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_save_to_file>`
  137. 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<class_EditorFeatureProfile_method_load_from_file>` method.
  138. \ **Note:** Feature profiles created via the user interface are saved in the ``feature_profiles`` directory, as a file with the ``.profile`` extension. The editor configuration folder can be found by using :ref:`EditorPaths.get_config_dir<class_EditorPaths_method_get_config_dir>`.
  139. .. rst-class:: classref-item-separator
  140. ----
  141. .. _class_EditorFeatureProfile_method_set_disable_class:
  142. .. rst-class:: classref-method
  143. |void| **set_disable_class**\ (\ class_name\: :ref:`StringName<class_StringName>`, disable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_set_disable_class>`
  144. If ``disable`` is ``true``, disables the class specified by ``class_name``. When disabled, the class won't appear in the Create New Node dialog.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_EditorFeatureProfile_method_set_disable_class_editor:
  148. .. rst-class:: classref-method
  149. |void| **set_disable_class_editor**\ (\ class_name\: :ref:`StringName<class_StringName>`, disable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_set_disable_class_editor>`
  150. 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.
  151. .. rst-class:: classref-item-separator
  152. ----
  153. .. _class_EditorFeatureProfile_method_set_disable_class_property:
  154. .. rst-class:: classref-method
  155. |void| **set_disable_class_property**\ (\ class_name\: :ref:`StringName<class_StringName>`, property\: :ref:`StringName<class_StringName>`, disable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_set_disable_class_property>`
  156. 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``.
  157. .. rst-class:: classref-item-separator
  158. ----
  159. .. _class_EditorFeatureProfile_method_set_disable_feature:
  160. .. rst-class:: classref-method
  161. |void| **set_disable_feature**\ (\ feature\: :ref:`Feature<enum_EditorFeatureProfile_Feature>`, disable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_EditorFeatureProfile_method_set_disable_feature>`
  162. If ``disable`` is ``true``, disables the editor feature specified in ``feature``. When a feature is disabled, it will disappear from the editor entirely.
  163. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  164. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  165. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  166. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  167. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  168. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  169. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  170. .. |void| replace:: :abbr:`void (No return value.)`