ScriptEditor

    Godot editor’s script editor.

    Note: This class shouldn’t be instantiated directly. Instead, access the singleton using .

    Emitted when user changed active script. Argument is a freshly activated Script.


    • script_close ( script )

    Emitted when editor is about to close the active script. Argument is a Script that is going to be closed.

    • bool can_drop_data_fw ( point, Variant data, from ) const


    • get_current_script ( )

    Returns a Script that is currently active in editor.



    • get_open_scripts ( ) const

    Returns an array with all Script objects which are currently open in editor.


    • void goto_line ( line_number )

    Goes to the specified line in the current script.


    • void open_script_create_dialog ( String base_name, base_path )

    • void reload_scripts ( )

    Reload all currently opened scripts from disk in case the file contents are newer.