Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ScriptEditor¶
Inherits: PanelContainer < Container < Control < CanvasItem < Node < Object
Godot editor's script editor.
Description¶
Godot editor's script editor.
Note: This class shouldn't be instantiated directly. Instead, access the singleton using EditorInterface.get_script_editor.
Methods¶
get_current_editor ( ) const |
|
get_open_script_editors ( ) const |
|
get_open_scripts ( ) const |
|
void |
|
void |
open_script_create_dialog ( String base_name, String base_path ) |
void |
register_syntax_highlighter ( EditorSyntaxHighlighter syntax_highlighter ) |
void |
unregister_syntax_highlighter ( EditorSyntaxHighlighter syntax_highlighter ) |
Signals¶
editor_script_changed ( Script script )
Emitted when user changed active script. Argument is a freshly activated Script.
script_close ( Script script )
Emitted when editor is about to close the active script. Argument is a Script that is going to be closed.
Method Descriptions¶
ScriptEditorBase get_current_editor ( ) const
Returns the ScriptEditorBase object that the user is currently editing.
Script get_current_script ( )
Returns a Script that is currently active in editor.
ScriptEditorBase[] get_open_script_editors ( ) const