EditorInterface¶
Category: Core
Brief Description¶
Editor interface and main components.
Member Functions¶
void | edit_resource ( Resource resource ) |
Control | get_base_control ( ) |
Node | get_edited_scene_root ( ) |
EditorSettings | get_editor_settings ( ) |
Control | get_editor_viewport ( ) |
Array | get_open_scenes ( ) const |
EditorFileSystem | get_resource_filesystem ( ) |
EditorResourcePreview | get_resource_previewer ( ) |
ScriptEditor | get_script_editor ( ) |
String | get_selected_path ( ) const |
EditorSelection | get_selection ( ) |
void | inspect_object ( Object object, String for_property=”” ) |
bool | is_plugin_enabled ( String plugin ) const |
Array | make_mesh_previews ( Array meshes, int preview_size ) |
void | open_scene_from_path ( String scene_filepath ) |
void | reload_scene_from_path ( String scene_filepath ) |
int | save_scene ( ) |
void | save_scene_as ( String path, bool with_preview=true ) |
void | select_file ( String p_file ) |
void | set_plugin_enabled ( String plugin, bool enabled ) |
Description¶
Editor interface. Allows saving and (re-)loading scenes, rendering mesh previews, inspecting and editing resources and objects and provides access to EditorSettings, EditorFileSystem, EditorResourcePreviewer, ScriptEditor, the editor viewport, as well as information about scenes. Also see EditorPlugin and EditorScript.
Member Function Description¶
- void edit_resource ( Resource resource )
Edits the given Resource.
- Control get_base_control ( )
Returns the base Control.
- Node get_edited_scene_root ( )
Returns the edited scene’s root Node.
- EditorSettings get_editor_settings ( )
Returns the EditorSettings.
- Control get_editor_viewport ( )
Returns the editor Viewport.
- Array get_open_scenes ( ) const
Returns an Array of the currently opened scenes.
- EditorFileSystem get_resource_filesystem ( )
Returns the EditorFileSystem.
- EditorResourcePreview get_resource_previewer ( )
Returns the EditorResourcePreviewer.
- ScriptEditor get_script_editor ( )
Returns the ScriptEditor.
- String get_selected_path ( ) const
- EditorSelection get_selection ( )
Returns the EditorSelection.
Shows the given property on the given object
in the Editor’s Inspector dock.
Returns the enabled status of a plugin. The plugin name is the same as its directory name.
Returns mesh previews rendered at the given size as an Array of Textures.
- void open_scene_from_path ( String scene_filepath )
Opens the scene at the given path.
- void reload_scene_from_path ( String scene_filepath )
Reloads the scene at the given path.
- int save_scene ( )
Saves the scene. Returns either OK or ERR_CANT_CREATE. See @GlobalScope constants.
Saves the scene as a file at path
.
- void select_file ( String p_file )
Sets the enabled status of a plugin. The plugin name is the same as its directory name.