From e88cfedf0e8a915531360d44071e318b8c9c2341 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 23 Mar 2020 17:11:18 +0100 Subject: [PATCH] Document the EditorFeatureProfile class (cherry picked from commit 7ab279403d3362034e79d5d1c92228a2249ed181) --- doc/classes/EditorFeatureProfile.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/classes/EditorFeatureProfile.xml b/doc/classes/EditorFeatureProfile.xml index 6a28d8d2356..8b774492544 100644 --- a/doc/classes/EditorFeatureProfile.xml +++ b/doc/classes/EditorFeatureProfile.xml @@ -1,8 +1,11 @@ + 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 [b]Editor > Manage Feature Profiles...[/b] at the top of the editor window. @@ -13,6 +16,7 @@ + Returns the specified [code]feature[/code]'s human-readable name. @@ -21,6 +25,7 @@ + Returns [code]true[/code] if the class specified by [code]class_name[/code] is disabled. When disabled, the class won't appear in the Create New Node dialog. @@ -29,6 +34,7 @@ + Returns [code]true[/code] if editing for the class specified by [code]class_name[/code] 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. @@ -39,6 +45,7 @@ + Returns [code]true[/code] if [code]property[/code] is disabled in the class specified by [code]class_name[/code]. When a property is disabled, it won't appear in the inspector when selecting a node that extends the class specified by [code]class_name[/code]. @@ -47,6 +54,7 @@ + Returns [code]true[/code] if the [code]feature[/code] is disabled. When a feature is disabled, it will disappear from the editor entirely. @@ -55,6 +63,7 @@ + Loads an editor feature profile from a file. The file must follow the JSON format obtained by using the feature profile manager's [b]Export[/b] button or the [method save_to_file] method. @@ -63,6 +72,7 @@ + Saves the editor feature profile to a file in JSON format. It can then be imported using the feature profile manager's [b]Import[/b] button or the [method load_from_file] button. @@ -73,6 +83,7 @@ + If [code]disable[/code] is [code]true[/code], disables the class specified by [code]class_name[/code]. When disabled, the class won't appear in the Create New Node dialog. @@ -83,6 +94,7 @@ + If [code]disable[/code] is [code]true[/code], disables editing for the class specified by [code]class_name[/code]. 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. @@ -95,6 +107,7 @@ + If [code]disable[/code] is [code]true[/code], disables editing for [code]property[/code] in the class specified by [code]class_name[/code]. When a property is disabled, it won't appear in the inspector when selecting a node that extends the class specified by [code]class_name[/code]. @@ -105,23 +118,31 @@ + If [code]disable[/code] is [code]true[/code], disables the editor feature specified in [code]feature[/code]. When a feature is disabled, it will disappear from the editor entirely. + 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. + The Script tab, which contains the script editor and class reference browser. If this feature is disabled, the Script tab won't display. + The AssetLib tab. If this feature is disabled, the AssetLib tab won't display. + Scene tree editing. If this feature is disabled, the Scene tree dock will still be visible but will be read-only. + The Import dock. If this feature is disabled, the Import dock won't be visible. + The Node dock. If this feature is disabled, signals and groups won't be visible and modifiable from the editor. + The FileSystem dock. If this feature is disabled, the FileSystem dock won't be visible. Represents the size of the [enum Feature] enum.