class_editorfeatureprofile.rst 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/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>` **(** :ref:`Feature<enum_EditorFeatureProfile_Feature>` feature **)** |
  23. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_class_disabled<class_EditorFeatureProfile_method_is_class_disabled>` **(** :ref:`StringName<class_StringName>` class_name **)** |const| |
  25. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`is_class_editor_disabled<class_EditorFeatureProfile_method_is_class_editor_disabled>` **(** :ref:`StringName<class_StringName>` class_name **)** |const| |
  27. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`bool<class_bool>` | :ref:`is_class_property_disabled<class_EditorFeatureProfile_method_is_class_property_disabled>` **(** :ref:`StringName<class_StringName>` class_name, :ref:`StringName<class_StringName>` property **)** |const| |
  29. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`bool<class_bool>` | :ref:`is_feature_disabled<class_EditorFeatureProfile_method_is_feature_disabled>` **(** :ref:`Feature<enum_EditorFeatureProfile_Feature>` feature **)** |const| |
  31. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`load_from_file<class_EditorFeatureProfile_method_load_from_file>` **(** :ref:`String<class_String>` path **)** |
  33. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`save_to_file<class_EditorFeatureProfile_method_save_to_file>` **(** :ref:`String<class_String>` path **)** |
  35. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`set_disable_class<class_EditorFeatureProfile_method_set_disable_class>` **(** :ref:`StringName<class_StringName>` class_name, :ref:`bool<class_bool>` disable **)** |
  37. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_disable_class_editor<class_EditorFeatureProfile_method_set_disable_class_editor>` **(** :ref:`StringName<class_StringName>` class_name, :ref:`bool<class_bool>` disable **)** |
  39. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | void | :ref:`set_disable_class_property<class_EditorFeatureProfile_method_set_disable_class_property>` **(** :ref:`StringName<class_StringName>` class_name, :ref:`StringName<class_StringName>` property, :ref:`bool<class_bool>` disable **)** |
  41. +---------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`set_disable_feature<class_EditorFeatureProfile_method_set_disable_feature>` **(** :ref:`Feature<enum_EditorFeatureProfile_Feature>` feature, :ref:`bool<class_bool>` disable **)** |
  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**:
  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_MAX:
  85. .. rst-class:: classref-enumeration-constant
  86. :ref:`Feature<enum_EditorFeatureProfile_Feature>` **FEATURE_MAX** = ``8``
  87. Represents the size of the :ref:`Feature<enum_EditorFeatureProfile_Feature>` enum.
  88. .. rst-class:: classref-section-separator
  89. ----
  90. .. rst-class:: classref-descriptions-group
  91. Method Descriptions
  92. -------------------
  93. .. _class_EditorFeatureProfile_method_get_feature_name:
  94. .. rst-class:: classref-method
  95. :ref:`String<class_String>` **get_feature_name** **(** :ref:`Feature<enum_EditorFeatureProfile_Feature>` feature **)**
  96. Returns the specified ``feature``'s human-readable name.
  97. .. rst-class:: classref-item-separator
  98. ----
  99. .. _class_EditorFeatureProfile_method_is_class_disabled:
  100. .. rst-class:: classref-method
  101. :ref:`bool<class_bool>` **is_class_disabled** **(** :ref:`StringName<class_StringName>` class_name **)** |const|
  102. Returns ``true`` if the class specified by ``class_name`` is disabled. When disabled, the class won't appear in the Create New Node dialog.
  103. .. rst-class:: classref-item-separator
  104. ----
  105. .. _class_EditorFeatureProfile_method_is_class_editor_disabled:
  106. .. rst-class:: classref-method
  107. :ref:`bool<class_bool>` **is_class_editor_disabled** **(** :ref:`StringName<class_StringName>` class_name **)** |const|
  108. 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.
  109. .. rst-class:: classref-item-separator
  110. ----
  111. .. _class_EditorFeatureProfile_method_is_class_property_disabled:
  112. .. rst-class:: classref-method
  113. :ref:`bool<class_bool>` **is_class_property_disabled** **(** :ref:`StringName<class_StringName>` class_name, :ref:`StringName<class_StringName>` property **)** |const|
  114. 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``.
  115. .. rst-class:: classref-item-separator
  116. ----
  117. .. _class_EditorFeatureProfile_method_is_feature_disabled:
  118. .. rst-class:: classref-method
  119. :ref:`bool<class_bool>` **is_feature_disabled** **(** :ref:`Feature<enum_EditorFeatureProfile_Feature>` feature **)** |const|
  120. Returns ``true`` if the ``feature`` is disabled. When a feature is disabled, it will disappear from the editor entirely.
  121. .. rst-class:: classref-item-separator
  122. ----
  123. .. _class_EditorFeatureProfile_method_load_from_file:
  124. .. rst-class:: classref-method
  125. :ref:`Error<enum_@GlobalScope_Error>` **load_from_file** **(** :ref:`String<class_String>` path **)**
  126. 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.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_EditorFeatureProfile_method_save_to_file:
  130. .. rst-class:: classref-method
  131. :ref:`Error<enum_@GlobalScope_Error>` **save_to_file** **(** :ref:`String<class_String>` path **)**
  132. 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.
  133. .. rst-class:: classref-item-separator
  134. ----
  135. .. _class_EditorFeatureProfile_method_set_disable_class:
  136. .. rst-class:: classref-method
  137. void **set_disable_class** **(** :ref:`StringName<class_StringName>` class_name, :ref:`bool<class_bool>` disable **)**
  138. If ``disable`` is ``true``, disables the class specified by ``class_name``. When disabled, the class won't appear in the Create New Node dialog.
  139. .. rst-class:: classref-item-separator
  140. ----
  141. .. _class_EditorFeatureProfile_method_set_disable_class_editor:
  142. .. rst-class:: classref-method
  143. void **set_disable_class_editor** **(** :ref:`StringName<class_StringName>` class_name, :ref:`bool<class_bool>` disable **)**
  144. 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.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_EditorFeatureProfile_method_set_disable_class_property:
  148. .. rst-class:: classref-method
  149. void **set_disable_class_property** **(** :ref:`StringName<class_StringName>` class_name, :ref:`StringName<class_StringName>` property, :ref:`bool<class_bool>` disable **)**
  150. 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``.
  151. .. rst-class:: classref-item-separator
  152. ----
  153. .. _class_EditorFeatureProfile_method_set_disable_feature:
  154. .. rst-class:: classref-method
  155. void **set_disable_feature** **(** :ref:`Feature<enum_EditorFeatureProfile_Feature>` feature, :ref:`bool<class_bool>` disable **)**
  156. If ``disable`` is ``true``, disables the editor feature specified in ``feature``. When a feature is disabled, it will disappear from the editor entirely.
  157. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  158. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  159. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  160. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  161. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  162. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`