class_editorfeatureprofile.rst 15 KB

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