.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the SceneState.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_SceneState: SceneState ========== **Inherits:** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- A script interface to a scene file's data. Member Functions ---------------- +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_connection_binds` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_connection_count` **(** **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_connection_flags` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_connection_method` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_connection_signal` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_connection_source` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_connection_target` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_node_count` **(** **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PoolStringArray` | :ref:`get_node_groups` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_node_index` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedScene` | :ref:`get_node_instance` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_node_instance_placeholder` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_node_name` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_node_owner_path` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NodePath` | :ref:`get_node_path` **(** :ref:`int` idx, :ref:`bool` for_parent=false **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_node_property_count` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_node_property_name` **(** :ref:`int` idx, :ref:`int` prop_idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_node_property_value` **(** :ref:`int` idx, :ref:`int` prop_idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_node_type` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_node_instance_placeholder` **(** :ref:`int` idx **)** const | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ Enums ----- .. _enum_SceneState_GenEditState: enum **GenEditState** - **GEN_EDIT_STATE_DISABLED** = **0** --- If passed to :ref:`PackedScene.instance`, blocks edits to the scene state. - **GEN_EDIT_STATE_INSTANCE** = **1** --- If passed to :ref:`PackedScene.instance`, provides inherited scene resources to the local scene. Requires tools compiled. - **GEN_EDIT_STATE_MAIN** = **2** --- If passed to :ref:`PackedScene.instance`, provides local scene resources to the local scene. Only the main scene should receive the main edit state. Requires tools compiled. Description ----------- Maintains a list of resources, nodes, exported and overridden properties, and built-in scripts associated with a scene. Member Function Description --------------------------- .. _class_SceneState_get_connection_binds: - :ref:`Array` **get_connection_binds** **(** :ref:`int` idx **)** const Returns the list of bound parameters for the signal at ``idx``. .. _class_SceneState_get_connection_count: - :ref:`int` **get_connection_count** **(** **)** const Returns the number of signal connections in the scene. .. _class_SceneState_get_connection_flags: - :ref:`int` **get_connection_flags** **(** :ref:`int` idx **)** const Returns the flags for the signal at ``idx``. See :ref:`Object`'s ``CONNECT_*`` flags. .. _class_SceneState_get_connection_method: - :ref:`String` **get_connection_method** **(** :ref:`int` idx **)** const Returns the method connected to the signal at ``idx``. .. _class_SceneState_get_connection_signal: - :ref:`String` **get_connection_signal** **(** :ref:`int` idx **)** const Returns the name of the signal at ``idx``. .. _class_SceneState_get_connection_source: - :ref:`NodePath` **get_connection_source** **(** :ref:`int` idx **)** const Returns the path to the node that owns the signal at ``idx``, relative to the root node. .. _class_SceneState_get_connection_target: - :ref:`NodePath` **get_connection_target** **(** :ref:`int` idx **)** const Returns the path to the node that owns the method connected to the signal at ``idx``, relative to the root node. .. _class_SceneState_get_node_count: - :ref:`int` **get_node_count** **(** **)** const Returns the number of nodes in the scene. .. _class_SceneState_get_node_groups: - :ref:`PoolStringArray` **get_node_groups** **(** :ref:`int` idx **)** const Returns the list of group names associated with the node at ``idx``. .. _class_SceneState_get_node_index: - :ref:`int` **get_node_index** **(** :ref:`int` idx **)** const .. _class_SceneState_get_node_instance: - :ref:`PackedScene` **get_node_instance** **(** :ref:`int` idx **)** const Returns the scene for the node at ``idx`` or ``null`` if the node is not an instance. .. _class_SceneState_get_node_instance_placeholder: - :ref:`String` **get_node_instance_placeholder** **(** :ref:`int` idx **)** const Returns the path to the represented scene file if the node at ``idx`` is an :ref:`InstancePlaceholder`. .. _class_SceneState_get_node_name: - :ref:`String` **get_node_name** **(** :ref:`int` idx **)** const Returns the name of the node at ``idx``. .. _class_SceneState_get_node_owner_path: - :ref:`NodePath` **get_node_owner_path** **(** :ref:`int` idx **)** const Returns the path to the owner of the node at ``idx``, relative to the root node. .. _class_SceneState_get_node_path: - :ref:`NodePath` **get_node_path** **(** :ref:`int` idx, :ref:`bool` for_parent=false **)** const Returns the path to the node at ``idx``. .. _class_SceneState_get_node_property_count: - :ref:`int` **get_node_property_count** **(** :ref:`int` idx **)** const Returns the number of exported or overridden properties for the node at ``idx``. .. _class_SceneState_get_node_property_name: - :ref:`String` **get_node_property_name** **(** :ref:`int` idx, :ref:`int` prop_idx **)** const Returns the name of the property at ``prop_idx`` for the node at ``idx``. .. _class_SceneState_get_node_property_value: - :ref:`Variant` **get_node_property_value** **(** :ref:`int` idx, :ref:`int` prop_idx **)** const Returns the value of the property at ``prop_idx`` for the node at ``idx``. .. _class_SceneState_get_node_type: - :ref:`String` **get_node_type** **(** :ref:`int` idx **)** const Returns the type of the node at ``idx``. .. _class_SceneState_is_node_instance_placeholder: - :ref:`bool` **is_node_instance_placeholder** **(** :ref:`int` idx **)** const Returns ``true`` if the node at ``idx`` is an :ref:`InstancePlaceholder`.