mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
57 lines
2.4 KiB
ReStructuredText
57 lines
2.4 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the EditorScript.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_EditorScript:
|
|
|
|
EditorScript
|
|
============
|
|
|
|
**Inherits:** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Simple script to perform changes in the currently edited scene.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`_run<class_EditorScript__run>` **(** **)** virtual |
|
|
+------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`add_root_node<class_EditorScript_add_root_node>` **(** :ref:`Node<class_node>` node **)** |
|
|
+------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
|
| :ref:`EditorInterface<class_editorinterface>` | :ref:`get_editor_interface<class_EditorScript_get_editor_interface>` **(** **)** |
|
|
+------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
|
| :ref:`Node<class_node>` | :ref:`get_scene<class_EditorScript_get_scene>` **(** **)** |
|
|
+------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
|
|
|
Description
|
|
-----------
|
|
|
|
This script can be run from the Scene -> Run Script menu option.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_EditorScript__run:
|
|
|
|
- void **_run** **(** **)** virtual
|
|
|
|
.. _class_EditorScript_add_root_node:
|
|
|
|
- void **add_root_node** **(** :ref:`Node<class_node>` node **)**
|
|
|
|
.. _class_EditorScript_get_editor_interface:
|
|
|
|
- :ref:`EditorInterface<class_editorinterface>` **get_editor_interface** **(** **)**
|
|
|
|
.. _class_EditorScript_get_scene:
|
|
|
|
- :ref:`Node<class_node>` **get_scene** **(** **)**
|
|
|
|
|