[DOCS] Node: Document _process()/_set_process()

This commit is contained in:
Max Hilbrunner 2017-11-28 12:41:45 +01:00 committed by mhilbrunner
parent 95e7656a15
commit f28bb07dec

View file

@ -43,6 +43,7 @@
</argument> </argument>
<description> <description>
Called when there is a change to input devices. Propagated through the node tree until a Node consumes it. Called when there is a change to input devices. Propagated through the node tree until a Node consumes it.
It is only called if input processing is enabled, which is done automatically if this method is overriden, and can be toggled with [method set_process_input].
</description> </description>
</method> </method>
<method name="_physics_process" qualifiers="virtual"> <method name="_physics_process" qualifiers="virtual">
@ -52,7 +53,7 @@
</argument> </argument>
<description> <description>
Called during the physics processing step of the main loop. Physics processing means that the frame rate is synced to the physics, i.e. the [code]delta[/code] variable should be constant. Called during the physics processing step of the main loop. Physics processing means that the frame rate is synced to the physics, i.e. the [code]delta[/code] variable should be constant.
It is only called if physics processing has been enabled with [method set_physics_process]. It is only called if physics processing is enabled, which is done automatically if this method is overriden, and can be toggled with [method set_physics_process].
Corresponds to the NOTIFICATION_PHYSICS_PROCESS notification in [method Object._notification]. Corresponds to the NOTIFICATION_PHYSICS_PROCESS notification in [method Object._notification].
</description> </description>
</method> </method>
@ -63,7 +64,7 @@
</argument> </argument>
<description> <description>
Called during the processing step of the main loop. Processing happens at every frame and as fast as possible, so the [code]delta[/code] time since the previous frame is not constant. Called during the processing step of the main loop. Processing happens at every frame and as fast as possible, so the [code]delta[/code] time since the previous frame is not constant.
It is only called if processing has been enabled with [method set_process]. It is only called if processing is enabled, which is done automatically if this method is overriden, and can be toggled with [method set_process].
Corresponds to the NOTIFICATION_PROCESS notification in [method Object._notification]. Corresponds to the NOTIFICATION_PROCESS notification in [method Object._notification].
</description> </description>
</method> </method>
@ -82,6 +83,7 @@
</argument> </argument>
<description> <description>
Propagated to all nodes when the previous InputEvent is not consumed by any nodes. Propagated to all nodes when the previous InputEvent is not consumed by any nodes.
It is only called if unhandled input processing is enabled, which is done automatically if this method is overriden, and can be toggled with [method set_process_unhandled_input].
</description> </description>
</method> </method>
<method name="_unhandled_key_input" qualifiers="virtual"> <method name="_unhandled_key_input" qualifiers="virtual">
@ -154,7 +156,7 @@
<argument index="2" name="owned" type="bool" default="true"> <argument index="2" name="owned" type="bool" default="true">
</argument> </argument>
<description> <description>
Find a descendant of this node whose name matches [code]mask[/code] as in [method String.match] (i.e. case sensitive, but '*' matches zero or more characters and '?' matches any single character except '.'). Note that it does not match against the full path, just against individual node names. Finds a descendant of this node whose name matches [code]mask[/code] as in [method String.match] (i.e. case sensitive, but '*' matches zero or more characters and '?' matches any single character except '.'). Note that it does not match against the full path, just against individual node names.
</description> </description>
</method> </method>
<method name="get_child" qualifiers="const"> <method name="get_child" qualifiers="const">
@ -163,55 +165,56 @@
<argument index="0" name="idx" type="int"> <argument index="0" name="idx" type="int">
</argument> </argument>
<description> <description>
Return a child node by its index (see [method get_child_count]). This method is often used for iterating all children of a node. Returns a child node by its index (see [method get_child_count]). This method is often used for iterating all children of a node.
</description> </description>
</method> </method>
<method name="get_child_count" qualifiers="const"> <method name="get_child_count" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Return the amount of child nodes. Returns the amount of child nodes.
</description> </description>
</method> </method>
<method name="get_children" qualifiers="const"> <method name="get_children" qualifiers="const">
<return type="Array"> <return type="Array">
</return> </return>
<description> <description>
Return an array of references ([code]Node[/code]) to the child nodes. Returns an array of references ([code]Node[/code]) to the child nodes.
</description> </description>
</method> </method>
<method name="get_filename" qualifiers="const"> <method name="get_filename" qualifiers="const">
<return type="String"> <return type="String">
</return> </return>
<description> <description>
Return a filename that may be contained by the node. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded (see [method set_filename]). Returns a filename that may be contained by the node. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded (see [method set_filename]).
</description> </description>
</method> </method>
<method name="get_groups" qualifiers="const"> <method name="get_groups" qualifiers="const">
<return type="Array"> <return type="Array">
</return> </return>
<description> <description>
Return an array listing the groups that the node is part of. Returns an array listing the groups that the node is part of.
</description> </description>
</method> </method>
<method name="get_index" qualifiers="const"> <method name="get_index" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Get the node index, i.e. its position among the siblings of its parent. Returns the node index, i.e. its position among the siblings of its parent.
</description> </description>
</method> </method>
<method name="get_name" qualifiers="const"> <method name="get_name" qualifiers="const">
<return type="String"> <return type="String">
</return> </return>
<description> <description>
Return the name of the node. This name is unique among the siblings (other child nodes from the same parent). Returns the name of the node. This name is unique among the siblings (other child nodes from the same parent).
</description> </description>
</method> </method>
<method name="get_network_master" qualifiers="const"> <method name="get_network_master" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the peer ID of the network master for this node.
</description> </description>
</method> </method>
<method name="get_node" qualifiers="const"> <method name="get_node" qualifiers="const">
@ -220,7 +223,7 @@
<argument index="0" name="path" type="NodePath"> <argument index="0" name="path" type="NodePath">
</argument> </argument>
<description> <description>
Fetch a node. The [NodePath] must be valid (or else an error will be raised) and can be either the path to child node, a relative path (from the current node to another node), or an absolute path to a node. Fetches a node. The [NodePath] must be valid (or else an error will be raised) and can be either the path to child node, a relative path (from the current node to another node), or an absolute path to a node.
Note: fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]). Note: fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]).
[i]Example:[/i] Assume your current node is Character and the following tree: [i]Example:[/i] Assume your current node is Character and the following tree:
[codeblock] [codeblock]
@ -254,21 +257,21 @@
<return type="Node"> <return type="Node">
</return> </return>
<description> <description>
Get the node owner (see [method set_owner]). Returns the node owner (see [method set_owner]).
</description> </description>
</method> </method>
<method name="get_parent" qualifiers="const"> <method name="get_parent" qualifiers="const">
<return type="Node"> <return type="Node">
</return> </return>
<description> <description>
Return the parent node of the current node, or an empty [code]Node[/code] if the node lacks a parent. Returns the parent node of the current node, or an empty [code]Node[/code] if the node lacks a parent.
</description> </description>
</method> </method>
<method name="get_path" qualifiers="const"> <method name="get_path" qualifiers="const">
<return type="NodePath"> <return type="NodePath">
</return> </return>
<description> <description>
Return the absolute path of the current node. This only works if the current node is inside the scene tree (see [method is_inside_tree]). Returns the absolute path of the current node. This only works if the current node is inside the scene tree (see [method is_inside_tree]).
</description> </description>
</method> </method>
<method name="get_path_to" qualifiers="const"> <method name="get_path_to" qualifiers="const">
@ -277,28 +280,28 @@
<argument index="0" name="node" type="Node"> <argument index="0" name="node" type="Node">
</argument> </argument>
<description> <description>
Return the relative path from the current node to the specified node in "node" argument. Both nodes must be in the same scene, or else the function will fail. Returns the relative path from the current node to the specified node in "node" argument. Both nodes must be in the same scene, or else the function will fail.
</description> </description>
</method> </method>
<method name="get_physics_process_delta_time" qualifiers="const"> <method name="get_physics_process_delta_time" qualifiers="const">
<return type="float"> <return type="float">
</return> </return>
<description> <description>
Return the time elapsed since the last physics-bound frame (see [method _physics_process]). This is always a constant value in physics processing unless the frames per second is changed in [OS]. Returns the time elapsed since the last physics-bound frame (see [method _physics_process]). This is always a constant value in physics processing unless the frames per second is changed in [OS].
</description> </description>
</method> </method>
<method name="get_position_in_parent" qualifiers="const"> <method name="get_position_in_parent" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Return the order in the node tree branch, i.e. if called by the first child Node, return 0. Returns the order in the node tree branch, i.e. if called by the first child Node, return 0.
</description> </description>
</method> </method>
<method name="get_process_delta_time" qualifiers="const"> <method name="get_process_delta_time" qualifiers="const">
<return type="float"> <return type="float">
</return> </return>
<description> <description>
Return the time elapsed (in seconds) since the last process callback. This is almost always different each time. Returns the time elapsed (in seconds) since the last process callback. This is almost always different each time.
</description> </description>
</method> </method>
<method name="get_scene_instance_load_placeholder" qualifiers="const"> <method name="get_scene_instance_load_placeholder" qualifiers="const">
@ -311,13 +314,14 @@
<return type="SceneTree"> <return type="SceneTree">
</return> </return>
<description> <description>
Return a [SceneTree] that this node is inside. Returns the [SceneTree] that this node is inside.
</description> </description>
</method> </method>
<method name="get_viewport" qualifiers="const"> <method name="get_viewport" qualifiers="const">
<return type="Viewport"> <return type="Viewport">
</return> </return>
<description> <description>
Returns the [Viewport] for this node.
</description> </description>
</method> </method>
<method name="has_node" qualifiers="const"> <method name="has_node" qualifiers="const">
@ -326,7 +330,7 @@
<argument index="0" name="path" type="NodePath"> <argument index="0" name="path" type="NodePath">
</argument> </argument>
<description> <description>
Return whether the node that a given [NodePath] points too exists. Returns [code]true[/code] if the node that the [NodePath] points to exists.
</description> </description>
</method> </method>
<method name="has_node_and_resource" qualifiers="const"> <method name="has_node_and_resource" qualifiers="const">
@ -343,7 +347,7 @@
<argument index="0" name="node" type="Node"> <argument index="0" name="node" type="Node">
</argument> </argument>
<description> <description>
Return [i]true[/i] if the "node" argument is a direct or indirect child of the current node, otherwise return [i]false[/i]. Returns [code]true[/code] if the "node" argument is a direct or indirect child of the current node, otherwise return [code]false[code].
</description> </description>
</method> </method>
<method name="is_greater_than" qualifiers="const"> <method name="is_greater_than" qualifiers="const">
@ -352,7 +356,7 @@
<argument index="0" name="node" type="Node"> <argument index="0" name="node" type="Node">
</argument> </argument>
<description> <description>
Return [i]true[/i] if "node" occurs later in the scene hierarchy than the current node, otherwise return [i]false[/i]. Returns [code]true[/code] if [code]node[/code] occurs later in the scene hierarchy than the current node, otherwise return [code]false[/code].
</description> </description>
</method> </method>
<method name="is_in_group" qualifiers="const"> <method name="is_in_group" qualifiers="const">
@ -361,14 +365,14 @@
<argument index="0" name="group" type="String"> <argument index="0" name="group" type="String">
</argument> </argument>
<description> <description>
Return whether this Node is in the specified group. Returns [code]true[/code] if this Node is in the specified group.
</description> </description>
</method> </method>
<method name="is_inside_tree" qualifiers="const"> <method name="is_inside_tree" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Return whether this Node is inside a [SceneTree]. Returns [code]true[/code] if this Node is currently inside a [SceneTree].
</description> </description>
</method> </method>
<method name="is_network_master" qualifiers="const"> <method name="is_network_master" qualifiers="const">
@ -381,7 +385,7 @@
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Return true if physics processing is enabled (see [method set_physics_process]). Returns [code]true[/code] if physics processing is enabled (see [method set_physics_process]).
</description> </description>
</method> </method>
<method name="is_physics_processing_internal" qualifiers="const"> <method name="is_physics_processing_internal" qualifiers="const">
@ -394,14 +398,14 @@
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Return whether processing is enabled in the current node (see [method set_process]). Returns [code]true[/code] if processing is enabled (see [method set_process]).
</description> </description>
</method> </method>
<method name="is_processing_input" qualifiers="const"> <method name="is_processing_input" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Return true if the node is processing input (see [method set_process_input]). Returns [code]true[/code] if the node is processing input (see [method set_process_input]).
</description> </description>
</method> </method>
<method name="is_processing_internal" qualifiers="const"> <method name="is_processing_internal" qualifiers="const">
@ -414,13 +418,14 @@
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Return true if the node is processing unhandled input (see [method set_process_unhandled_input]). Returns [code]true[/code] if the node is processing unhandled input (see [method set_process_unhandled_input]).
</description> </description>
</method> </method>
<method name="is_processing_unhandled_key_input" qualifiers="const"> <method name="is_processing_unhandled_key_input" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>
<description> <description>
Returns [code]true[/code] if the node is processing unhandled key input (see [method set_process_unhandled_key_input]).
</description> </description>
</method> </method>
<method name="move_child"> <method name="move_child">
@ -431,7 +436,7 @@
<argument index="1" name="to_position" type="int"> <argument index="1" name="to_position" type="int">
</argument> </argument>
<description> <description>
Move a child node to a different position (order) amongst the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful. Moves a child node to a different position (order) amongst the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful.
</description> </description>
</method> </method>
<method name="print_stray_nodes"> <method name="print_stray_nodes">
@ -444,7 +449,7 @@
<return type="void"> <return type="void">
</return> </return>
<description> <description>
Print the scene to stdout. Used mainly for debugging purposes. Prints the scene to stdout. Used mainly for debugging purposes.
</description> </description>
</method> </method>
<method name="propagate_call"> <method name="propagate_call">
@ -480,14 +485,14 @@
<return type="void"> <return type="void">
</return> </return>
<description> <description>
Move this node to the top of the array of nodes of the parent node. This is often useful on GUIs ([Control]), because their order of drawing fully depends on their order in the tree. Moves this node to the top of the array of nodes of the parent node. This is often useful on GUIs ([Control]), because their order of drawing fully depends on their order in the tree.
</description> </description>
</method> </method>
<method name="remove_and_skip"> <method name="remove_and_skip">
<return type="void"> <return type="void">
</return> </return>
<description> <description>
Remove a node and set all its children as children of the parent node (if exists). All even subscriptions that pass by the removed node will be unsubscribed. Removes a node and set all its children as children of the parent node (if exists). All even subscriptions that pass by the removed node will be unsubscribed.
</description> </description>
</method> </method>
<method name="remove_child"> <method name="remove_child">
@ -496,7 +501,7 @@
<argument index="0" name="node" type="Node"> <argument index="0" name="node" type="Node">
</argument> </argument>
<description> <description>
Remove a child [code]Node[/code]. Node is NOT deleted and will have to be deleted manually. Removes a child [code]Node[/code]. Node is NOT deleted and will have to be deleted manually.
</description> </description>
</method> </method>
<method name="remove_from_group"> <method name="remove_from_group">
@ -505,7 +510,7 @@
<argument index="0" name="group" type="String"> <argument index="0" name="group" type="String">
</argument> </argument>
<description> <description>
Remove a node from a group. Removes a node from a group.
</description> </description>
</method> </method>
<method name="replace_by"> <method name="replace_by">
@ -516,14 +521,14 @@
<argument index="1" name="keep_data" type="bool" default="false"> <argument index="1" name="keep_data" type="bool" default="false">
</argument> </argument>
<description> <description>
Replace a node in a scene by a given one. Subscriptions that pass through this node will be lost. Replaces a node in a scene by a given one. Subscriptions that pass through this node will be lost.
</description> </description>
</method> </method>
<method name="request_ready"> <method name="request_ready">
<return type="void"> <return type="void">
</return> </return>
<description> <description>
Request that [code]_ready[/code] be called again. Requests that [code]_ready[/code] be called again.
</description> </description>
</method> </method>
<method name="rpc" qualifiers="vararg"> <method name="rpc" qualifiers="vararg">
@ -532,7 +537,7 @@
<argument index="0" name="method" type="String"> <argument index="0" name="method" type="String">
</argument> </argument>
<description> <description>
Send a remote procedure call request to all peers on the network (and locally), optionally sending additional data as arguments. Call request will be received by nodes with the same [NodePath]. Sends a remote procedure call request to all peers on the network (and locally), optionally sending additional data as arguments. Call request will be received by nodes with the same [NodePath].
</description> </description>
</method> </method>
<method name="rpc_config"> <method name="rpc_config">
@ -543,7 +548,7 @@
<argument index="1" name="mode" type="int" enum="Node.RPCMode"> <argument index="1" name="mode" type="int" enum="Node.RPCMode">
</argument> </argument>
<description> <description>
Change the method's RPC mode (one of RPC_MODE_* constants). Changes the method's RPC mode (one of RPC_MODE_* constants).
</description> </description>
</method> </method>
<method name="rpc_id" qualifiers="vararg"> <method name="rpc_id" qualifiers="vararg">
@ -554,7 +559,7 @@
<argument index="1" name="method" type="String"> <argument index="1" name="method" type="String">
</argument> </argument>
<description> <description>
Send a [method rpc] to a specific peer identified by [i]peer_id[/i]. Sends a [method rpc] to a specific peer identified by [i]peer_id[/i].
</description> </description>
</method> </method>
<method name="rpc_unreliable" qualifiers="vararg"> <method name="rpc_unreliable" qualifiers="vararg">
@ -563,7 +568,7 @@
<argument index="0" name="method" type="String"> <argument index="0" name="method" type="String">
</argument> </argument>
<description> <description>
Send a [method rpc] using an unreliable protocol. Sends a [method rpc] using an unreliable protocol.
</description> </description>
</method> </method>
<method name="rpc_unreliable_id" qualifiers="vararg"> <method name="rpc_unreliable_id" qualifiers="vararg">
@ -574,7 +579,7 @@
<argument index="1" name="method" type="String"> <argument index="1" name="method" type="String">
</argument> </argument>
<description> <description>
Send a [method rpc] to a specific peer identified by [i]peer_id[/i] using an unreliable protocol. Sends a [method rpc] to a specific peer identified by [i]peer_id[/i] using an unreliable protocol.
</description> </description>
</method> </method>
<method name="rset"> <method name="rset">
@ -585,7 +590,7 @@
<argument index="1" name="value" type="Variant"> <argument index="1" name="value" type="Variant">
</argument> </argument>
<description> <description>
Remotely change property's value on other peers (and locally). Remotely changes property's value on other peers (and locally).
</description> </description>
</method> </method>
<method name="rset_config"> <method name="rset_config">
@ -596,7 +601,7 @@
<argument index="1" name="mode" type="int" enum="Node.RPCMode"> <argument index="1" name="mode" type="int" enum="Node.RPCMode">
</argument> </argument>
<description> <description>
Change the property's RPC mode (one of RPC_MODE_* constants). Changes the property's RPC mode (one of RPC_MODE_* constants).
</description> </description>
</method> </method>
<method name="rset_id"> <method name="rset_id">
@ -609,7 +614,7 @@
<argument index="2" name="value" type="Variant"> <argument index="2" name="value" type="Variant">
</argument> </argument>
<description> <description>
Remotely change property's value on a specific peer identified by [i]peer_id[/i]. Remotely changes property's value on a specific peer identified by [i]peer_id[/i].
</description> </description>
</method> </method>
<method name="rset_unreliable"> <method name="rset_unreliable">
@ -620,7 +625,7 @@
<argument index="1" name="value" type="Variant"> <argument index="1" name="value" type="Variant">
</argument> </argument>
<description> <description>
Remotely change property's value on other peers (and locally) using an unreliable protocol. Remotely changes property's value on other peers (and locally) using an unreliable protocol.
</description> </description>
</method> </method>
<method name="rset_unreliable_id"> <method name="rset_unreliable_id">
@ -633,7 +638,7 @@
<argument index="2" name="value" type="Variant"> <argument index="2" name="value" type="Variant">
</argument> </argument>
<description> <description>
Remotely change property's value on a specific peer identified by [i]peer_id[/i] using an unreliable protocol. Remotely changes property's value on a specific peer identified by [i]peer_id[/i] using an unreliable protocol.
</description> </description>
</method> </method>
<method name="set_filename"> <method name="set_filename">
@ -651,7 +656,7 @@
<argument index="0" name="name" type="String"> <argument index="0" name="name" type="String">
</argument> </argument>
<description> <description>
Set the name of the [code]Node[/code]. Name must be unique within parent, and setting an already existing name will cause for the node to be automatically renamed. Sets the name of the [code]Node[/code]. Name must be unique within parent, and setting an already existing name will cause for the node to be automatically renamed.
</description> </description>
</method> </method>
<method name="set_network_master"> <method name="set_network_master">
@ -662,6 +667,7 @@
<argument index="1" name="recursive" type="bool" default="true"> <argument index="1" name="recursive" type="bool" default="true">
</argument> </argument>
<description> <description>
Sets the node network master to the peer with the given peer ID. The network master is the peer that has authority over it on the network. Inherited from the parent node by default, which ultimately defaults to peer ID 1 (the server).
</description> </description>
</method> </method>
<method name="set_owner"> <method name="set_owner">
@ -670,7 +676,7 @@
<argument index="0" name="owner" type="Node"> <argument index="0" name="owner" type="Node">
</argument> </argument>
<description> <description>
Set the node owner. A node can have any other node as owner (as long as a valid parent, grandparent, etc ascending in the tree). When saving a node (using SceneSaver) all the nodes it owns will be saved with it. This allows to create complex SceneTrees, with instancing and subinstancing. Sets the node owner. A node can have any other node as owner (as long as a valid parent, grandparent, etc ascending in the tree). When saving a node (using SceneSaver) all the nodes it owns will be saved with it. This allows to create complex SceneTrees, with instancing and subinstancing.
</description> </description>
</method> </method>
<method name="set_physics_process"> <method name="set_physics_process">
@ -679,7 +685,7 @@
<argument index="0" name="enable" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Enables or disables the node's physics (alias fixed framerate) processing. When a node is being processed, it will receive a NOTIFICATION_PHYSICS_PROCESS at a fixed (usually 60 fps, check [OS] to change that) interval (and the [method _physics_process] callback will be called if exists). It is common to check how much time was elapsed since the previous frame by calling [method get_physics_process_delta_time]. Enables or disables the node's physics (alias fixed framerate) processing. When a node is being processed, it will receive a NOTIFICATION_PHYSICS_PROCESS at a fixed (usually 60 fps, check [OS] to change that) interval (and the [method _physics_process] callback will be called if exists). Enabled automatically if [method _physics_process] is overriden. Any calls to this before [method _ready] will be ignored.
</description> </description>
</method> </method>
<method name="set_physics_process_internal"> <method name="set_physics_process_internal">
@ -696,7 +702,7 @@
<argument index="0" name="enable" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Enables or disables node processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS on every drawn frame (and the [method _process] callback will be called if exists). It is common to check how much time was elapsed since the previous frame by calling [method get_process_delta_time]. Enables or disables node processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS on every drawn frame (and the [method _process] callback will be called if exists). Enabled automatically if [method _process] is overriden. Any calls to this before [method _ready] will be ignored.
</description> </description>
</method> </method>
<method name="set_process_input"> <method name="set_process_input">
@ -705,7 +711,7 @@
<argument index="0" name="enable" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Enable input processing for node. This is not required for GUI controls! It hooks up the node to receive all input (see [method _input]). Enables input processing for node. This is not required for GUI controls! It hooks up the node to receive all input (see [method _input]). Enabled automatically if [method _input] is overriden. Any calls to this before [method _ready] will be ignored.
</description> </description>
</method> </method>
<method name="set_process_internal"> <method name="set_process_internal">
@ -722,7 +728,7 @@
<argument index="0" name="enable" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Enable unhandled input processing for node. This is not required for GUI controls! It hooks up the node to receive all input that was not previously handled before (usually by a [Control]). (see [method _unhandled_input]). Enables unhandled input processing for node. This is not required for GUI controls! It hooks up the node to receive all input that was not previously handled before (usually by a [Control]). Enabled automatically if [method _unhandled_input] is overriden. Any calls to this before [method _ready] will be ignored.
</description> </description>
</method> </method>
<method name="set_process_unhandled_key_input"> <method name="set_process_unhandled_key_input">
@ -731,6 +737,7 @@
<argument index="0" name="enable" type="bool"> <argument index="0" name="enable" type="bool">
</argument> </argument>
<description> <description>
Enables unhandled key input processing for node. Enabled automatically if [method _unhandled_key_input] is overriden. Any calls to this before [method _ready] will be ignored.
</description> </description>
</method> </method>
<method name="set_scene_instance_load_placeholder"> <method name="set_scene_instance_load_placeholder">
@ -769,16 +776,22 @@
</signals> </signals>
<constants> <constants>
<constant name="NOTIFICATION_ENTER_TREE" value="10"> <constant name="NOTIFICATION_ENTER_TREE" value="10">
Notification received when the node enters a [SceneTree].
</constant> </constant>
<constant name="NOTIFICATION_EXIT_TREE" value="11"> <constant name="NOTIFICATION_EXIT_TREE" value="11">
Notification received when the node exits a [SceneTree].
</constant> </constant>
<constant name="NOTIFICATION_MOVED_IN_PARENT" value="12"> <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12">
Notification received when the node is moved in the parent.
</constant> </constant>
<constant name="NOTIFICATION_READY" value="13"> <constant name="NOTIFICATION_READY" value="13">
Notification received when the node is ready. See [method _ready].
</constant> </constant>
<constant name="NOTIFICATION_PAUSED" value="14"> <constant name="NOTIFICATION_PAUSED" value="14">
Notification received when the node is paused.
</constant> </constant>
<constant name="NOTIFICATION_UNPAUSED" value="15"> <constant name="NOTIFICATION_UNPAUSED" value="15">
Notification received when the node is unpaused.
</constant> </constant>
<constant name="NOTIFICATION_PHYSICS_PROCESS" value="16"> <constant name="NOTIFICATION_PHYSICS_PROCESS" value="16">
Notification received every frame when the physics process flag is set (see [method set_physics_process]). Notification received every frame when the physics process flag is set (see [method set_physics_process]).
@ -793,12 +806,16 @@
Notification received when a node is unparented (parent removed it from the list of children). Notification received when a node is unparented (parent removed it from the list of children).
</constant> </constant>
<constant name="NOTIFICATION_INSTANCED" value="20"> <constant name="NOTIFICATION_INSTANCED" value="20">
Notification received when the node is instanced.
</constant> </constant>
<constant name="NOTIFICATION_DRAG_BEGIN" value="21"> <constant name="NOTIFICATION_DRAG_BEGIN" value="21">
Notification received when a drag begins.
</constant> </constant>
<constant name="NOTIFICATION_DRAG_END" value="22"> <constant name="NOTIFICATION_DRAG_END" value="22">
Notification received when a drag ends.
</constant> </constant>
<constant name="NOTIFICATION_PATH_CHANGED" value="23"> <constant name="NOTIFICATION_PATH_CHANGED" value="23">
Notification received when the node's [NodePath] changed.
</constant> </constant>
<constant name="NOTIFICATION_TRANSLATION_CHANGED" value="24"> <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="24">
</constant> </constant>
@ -830,12 +847,16 @@
Continue to process regardless of SceneTree pause state. Continue to process regardless of SceneTree pause state.
</constant> </constant>
<constant name="DUPLICATE_SIGNALS" value="1" enum="DuplicateFlags"> <constant name="DUPLICATE_SIGNALS" value="1" enum="DuplicateFlags">
Duplicate the node's signals.
</constant> </constant>
<constant name="DUPLICATE_GROUPS" value="2" enum="DuplicateFlags"> <constant name="DUPLICATE_GROUPS" value="2" enum="DuplicateFlags">
Duplicate the node's groups.
</constant> </constant>
<constant name="DUPLICATE_SCRIPTS" value="4" enum="DuplicateFlags"> <constant name="DUPLICATE_SCRIPTS" value="4" enum="DuplicateFlags">
Duplicate the node's scripts.
</constant> </constant>
<constant name="DUPLICATE_USE_INSTANCING" value="8" enum="DuplicateFlags"> <constant name="DUPLICATE_USE_INSTANCING" value="8" enum="DuplicateFlags">
</constant> </constant>
Duplicate using instancing.
</constants> </constants>
</class> </class>