2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2018-02-24 18:59:38 +01:00
<class name= "SceneState" inherits= "Reference" category= "Core" version= "3.0.1" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-12-04 04:21:59 +01:00
A script interface to a scene file's data.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2017-12-04 04:21:59 +01:00
Maintains a list of resources, nodes, exported and overridden properties, and built-in scripts associated with a scene.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
<method name= "get_connection_binds" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the list of bound parameters for the signal at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_connection_count" qualifiers= "const" >
<return type= "int" >
</return>
<description >
2017-12-04 04:21:59 +01:00
Returns the number of signal connections in the scene.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_connection_flags" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the flags for the signal at [code]idx[/code]. See [Object]'s [code]CONNECT_*[/code] flags.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_connection_method" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the method connected to the signal at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_connection_signal" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the name of the signal at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_connection_source" qualifiers= "const" >
<return type= "NodePath" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the path to the node that owns the signal at [code]idx[/code], relative to the root node.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_connection_target" qualifiers= "const" >
<return type= "NodePath" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the path to the node that owns the method connected to the signal at [code]idx[/code], relative to the root node.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_count" qualifiers= "const" >
<return type= "int" >
</return>
<description >
2017-12-04 04:21:59 +01:00
Returns the number of nodes in the scene.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_groups" qualifiers= "const" >
<return type= "PoolStringArray" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the list of group names associated with the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
2017-12-16 20:34:16 +01:00
<method name= "get_node_index" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
</description>
</method>
2017-09-12 22:42:36 +02:00
<method name= "get_node_instance" qualifiers= "const" >
<return type= "PackedScene" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the scene for the node at [code]idx[/code] or [code]null[/code] if the node is not an instance.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_instance_placeholder" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the path to the represented scene file if the node at [code]idx[/code] is an [InstancePlaceholder].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_name" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the name of the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_owner_path" qualifiers= "const" >
<return type= "NodePath" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the path to the owner of the node at [code]idx[/code], relative to the root node.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_path" qualifiers= "const" >
<return type= "NodePath" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<argument index= "1" name= "for_parent" type= "bool" default= "false" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the path to the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_property_count" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the number of exported or overridden properties for the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_property_name" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<argument index= "1" name= "prop_idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the name of the property at [code]prop_idx[/code] for the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_property_value" qualifiers= "const" >
<return type= "Variant" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<argument index= "1" name= "prop_idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the value of the property at [code]prop_idx[/code] for the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "get_node_type" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns the type of the node at [code]idx[/code].
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "is_node_instance_placeholder" qualifiers= "const" >
<return type= "bool" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2017-12-04 04:21:59 +01:00
Returns [code]true[/code] if the node at [code]idx[/code] is an [InstancePlaceholder].
2017-09-12 22:42:36 +02:00
</description>
</method>
</methods>
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "GEN_EDIT_STATE_DISABLED" value= "0" enum= "GenEditState" >
2017-12-04 04:21:59 +01:00
If passed to [method PackedScene.instance], blocks edits to the scene state.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "GEN_EDIT_STATE_INSTANCE" value= "1" enum= "GenEditState" >
2017-12-04 04:21:59 +01:00
If passed to [method PackedScene.instance], provides inherited scene resources to the local scene. Requires tools compiled.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "GEN_EDIT_STATE_MAIN" value= "2" enum= "GenEditState" >
2017-12-04 04:21:59 +01:00
If passed to [method PackedScene.instance], provides local scene resources to the local scene. Only the main scene should receive the main edit state. Requires tools compiled.
2017-09-12 22:42:36 +02:00
</constant>
</constants>
</class>