|
@@ -459,7 +459,7 @@
|
|
|
<param index="0" name="node" type="Node" />
|
|
|
<param index="1" name="use_unique_path" type="bool" default="false" />
|
|
|
<description>
|
|
|
- Returns the relative [NodePath] from this node to the specified [param node]. Both nodes must be in the same [SceneTree], otherwise this method fails and returns an empty [NodePath].
|
|
|
+ Returns the relative [NodePath] from this node to the specified [param node]. Both nodes must be in the same [SceneTree] or scene hierarchy, otherwise this method fails and returns an empty [NodePath].
|
|
|
If [param use_unique_path] is [code]true[/code], returns the shortest path accounting for this node's unique name (see [member unique_name_in_owner]).
|
|
|
[b]Note:[/b] If you get a relative path which starts from a unique node, the path may be longer than a normal relative path, due to the addition of the unique node's name.
|
|
|
</description>
|
|
@@ -839,7 +839,8 @@
|
|
|
<return type="void" />
|
|
|
<param index="0" name="enable" type="bool" />
|
|
|
<description>
|
|
|
- If set to [code]true[/code], enables physics (fixed framerate) processing. When a node is being processed, it will receive a [constant NOTIFICATION_PHYSICS_PROCESS] at a fixed (usually 60 FPS, see [member Engine.physics_ticks_per_second] to change) interval (and the [method _physics_process] callback will be called if it exists). Enabled automatically if [method _physics_process] is overridden.
|
|
|
+ If set to [code]true[/code], enables physics (fixed framerate) processing. When a node is being processed, it will receive a [constant NOTIFICATION_PHYSICS_PROCESS] at a fixed (usually 60 FPS, see [member Engine.physics_ticks_per_second] to change) interval (and the [method _physics_process] callback will be called if it exists).
|
|
|
+ [b]Note:[/b] If [method _physics_process] is overridden, this will be automatically enabled before [method _ready] is called.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="set_physics_process_internal">
|
|
@@ -854,7 +855,8 @@
|
|
|
<return type="void" />
|
|
|
<param index="0" name="enable" type="bool" />
|
|
|
<description>
|
|
|
- If set to [code]true[/code], enables processing. When a node is being processed, it will receive a [constant NOTIFICATION_PROCESS] on every drawn frame (and the [method _process] callback will be called if it exists). Enabled automatically if [method _process] is overridden.
|
|
|
+ If set to [code]true[/code], enables processing. When a node is being processed, it will receive a [constant NOTIFICATION_PROCESS] on every drawn frame (and the [method _process] callback will be called if it exists).
|
|
|
+ [b]Note:[/b] If [method _process] is overridden, this will be automatically enabled before [method _ready] is called.
|
|
|
[b]Note:[/b] This method only affects the [method _process] callback, i.e. it has no effect on other callbacks like [method _physics_process]. If you want to disable all processing for the node, set [member process_mode] to [constant PROCESS_MODE_DISABLED].
|
|
|
</description>
|
|
|
</method>
|
|
@@ -862,7 +864,8 @@
|
|
|
<return type="void" />
|
|
|
<param index="0" name="enable" type="bool" />
|
|
|
<description>
|
|
|
- If set to [code]true[/code], enables input processing. This is not required for GUI controls! Enabled automatically if [method _input] is overridden.
|
|
|
+ If set to [code]true[/code], enables input processing.
|
|
|
+ [b]Note:[/b] If [method _input] is overridden, this will be automatically enabled before [method _ready] is called. Input processing is also already enabled for GUI controls, such as [Button] and [TextEdit].
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="set_process_internal">
|
|
@@ -877,21 +880,24 @@
|
|
|
<return type="void" />
|
|
|
<param index="0" name="enable" type="bool" />
|
|
|
<description>
|
|
|
- If set to [code]true[/code], enables shortcut processing for this node. Enabled automatically if [method _shortcut_input] is overridden.
|
|
|
+ If set to [code]true[/code], enables shortcut processing for this node.
|
|
|
+ [b]Note:[/b] If [method _shortcut_input] is overridden, this will be automatically enabled before [method _ready] is called.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="set_process_unhandled_input">
|
|
|
<return type="void" />
|
|
|
<param index="0" name="enable" type="bool" />
|
|
|
<description>
|
|
|
- If set to [code]true[/code], enables unhandled input processing. This is not required for GUI controls! It enables the node to receive all input that was not previously handled (usually by a [Control]). Enabled automatically if [method _unhandled_input] is overridden.
|
|
|
+ If set to [code]true[/code], enables unhandled input processing. It enables the node to receive all input that was not previously handled (usually by a [Control]).
|
|
|
+ [b]Note:[/b] If [method _unhandled_input] is overridden, this will be automatically enabled before [method _ready] is called. Unhandled input processing is also already enabled for GUI controls, such as [Button] and [TextEdit].
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="set_process_unhandled_key_input">
|
|
|
<return type="void" />
|
|
|
<param index="0" name="enable" type="bool" />
|
|
|
<description>
|
|
|
- If set to [code]true[/code], enables unhandled key input processing. Enabled automatically if [method _unhandled_key_input] is overridden.
|
|
|
+ If set to [code]true[/code], enables unhandled key input processing.
|
|
|
+ [b]Note:[/b] If [method _unhandled_key_input] is overridden, this will be automatically enabled before [method _ready] is called.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="set_scene_instance_load_placeholder">
|
|
@@ -926,7 +932,7 @@
|
|
|
</member>
|
|
|
<member name="name" type="StringName" setter="set_name" getter="get_name">
|
|
|
The name of the node. This name must be unique among the siblings (other child nodes from the same parent). When set to an existing sibling's name, the node is automatically renamed.
|
|
|
- [b]Note:[/b] When changing the name, the following characters will be removed: ([code].[/code] [code]:[/code] [code]@[/code] [code]/[/code] [code]"[/code] [code]%[/code]). In particular, the [code]@[/code] character is reserved for auto-generated names. See also [method String.validate_node_name].
|
|
|
+ [b]Note:[/b] When changing the name, the following characters will be replaced with an underscore: ([code].[/code] [code]:[/code] [code]@[/code] [code]/[/code] [code]"[/code] [code]%[/code]). In particular, the [code]@[/code] character is reserved for auto-generated names. See also [method String.validate_node_name].
|
|
|
</member>
|
|
|
<member name="owner" type="Node" setter="set_owner" getter="get_owner">
|
|
|
The owner of this node. The owner must be an ancestor of this node. When packing the owner node in a [PackedScene], all the nodes it owns are also saved with it.
|
|
@@ -1197,10 +1203,13 @@
|
|
|
Process this node (and children nodes set to inherit) on a sub-thread. See [member process_thread_group] for more information.
|
|
|
</constant>
|
|
|
<constant name="FLAG_PROCESS_THREAD_MESSAGES" value="1" enum="ProcessThreadMessages" is_bitfield="true">
|
|
|
+ Allows this node to process threaded messages created with [method call_deferred_thread_group] right before [method _process] is called.
|
|
|
</constant>
|
|
|
<constant name="FLAG_PROCESS_THREAD_MESSAGES_PHYSICS" value="2" enum="ProcessThreadMessages" is_bitfield="true">
|
|
|
+ Allows this node to process threaded messages created with [method call_deferred_thread_group] right before [method _physics_process] is called.
|
|
|
</constant>
|
|
|
<constant name="FLAG_PROCESS_THREAD_MESSAGES_ALL" value="3" enum="ProcessThreadMessages" is_bitfield="true">
|
|
|
+ Allows this node to process threaded messages created with [method call_deferred_thread_group] right before either [method _process] or [method _physics_process] are called.
|
|
|
</constant>
|
|
|
<constant name="DUPLICATE_SIGNALS" value="1" enum="DuplicateFlags">
|
|
|
Duplicate the node's signal connections.
|
|
@@ -1209,7 +1218,7 @@
|
|
|
Duplicate the node's groups.
|
|
|
</constant>
|
|
|
<constant name="DUPLICATE_SCRIPTS" value="4" enum="DuplicateFlags">
|
|
|
- Duplicate the node's script (including the ancestor's script, if combined with [constant DUPLICATE_USE_INSTANTIATION]).
|
|
|
+ Duplicate the node's script (also overriding the duplicated children's scripts, if combined with [constant DUPLICATE_USE_INSTANTIATION]).
|
|
|
</constant>
|
|
|
<constant name="DUPLICATE_USE_INSTANTIATION" value="8" enum="DuplicateFlags">
|
|
|
Duplicate using [method PackedScene.instantiate]. If the node comes from a scene saved on disk, re-uses [method PackedScene.instantiate] as the base for the duplicated node and its children.
|