mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Merge pull request #33663 from Calinou/add-node-get-process-priority
Implement `Node::get_process_priority()` and its associated property
This commit is contained in:
commit
cc025fc8e7
4 changed files with 11 additions and 10 deletions
|
|
@ -783,15 +783,6 @@
|
|||
Enables or disabled internal processing for this node. Internal processing happens in isolation from the normal [method _process] calls and is used by some nodes internally to guarantee proper functioning even if the node is paused or processing is disabled for scripting ([method set_process]). Only useful for advanced uses to manipulate built-in nodes' behaviour.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_process_priority">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="priority" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the node's priority in the execution order of the enabled processing callbacks (i.e. [constant NOTIFICATION_PROCESS], [constant NOTIFICATION_PHYSICS_PROCESS] and their internal counterparts). Nodes with a higher process priority will have their processing callbacks executed first.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_process_unhandled_input">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
|
@ -847,6 +838,9 @@
|
|||
<member name="pause_mode" type="int" setter="set_pause_mode" getter="get_pause_mode" enum="Node.PauseMode" default="0">
|
||||
Pause mode. How the node will behave if the [SceneTree] is paused.
|
||||
</member>
|
||||
<member name="process_priority" type="int" setter="set_process_priority" getter="get_process_priority" default="0">
|
||||
The node's priority in the execution order of the enabled processing callbacks (i.e. [constant NOTIFICATION_PROCESS], [constant NOTIFICATION_PHYSICS_PROCESS] and their internal counterparts). Nodes with a higher process priority will have their processing callbacks executed first.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="ready">
|
||||
|
|
|
|||
|
|
@ -752,7 +752,6 @@
|
|||
print(some_array[0]) # Prints "Four"
|
||||
print(some_array[1]) # Prints "Three,Two,One"
|
||||
[/codeblock]
|
||||
|
||||
</description>
|
||||
</method>
|
||||
<method name="rstrip">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue