class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted EditorScript
Base script that can be used to add extension functions to the editor.

Scripts extending this class and implementing its _run method can be executed from the Script Editor's File > Run menu option (or by pressing Ctrl + Shift + X) while the editor is running. This is useful for adding custom in-editor functionality to Godot. For more complex additions, consider using EditorPlugins instead.

Example script:

@tool extends EditorScript func _run(): print("Hello from the Godot Editor!")
void _run<>():void

This method is executed by the Editor when File > Run is used.

void add_root_node<>( Node node=, node:Node=, ):void

Adds node as a child of the root node in the editor context.

Warning: The implementation of this method is currently disabled.

EditorInterface get_editor_interface<>():EditorInterface

Returns the EditorInterface singleton instance.

Deprecated. EditorInterface is a global singleton and can be accessed directly by its name.

Node get_scene<>():Node

Returns the Editor's currently active scene.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...