mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
50 lines
1.8 KiB
ReStructuredText
50 lines
1.8 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
|
|
|
.. _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:`Object<class_object>` node **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Object<class_object>` | :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:`Object<class_object>` node **)**
|
|
|
|
.. _class_EditorScript_get_scene:
|
|
|
|
- :ref:`Object<class_object>` **get_scene** **(** **)**
|
|
|
|
|