|
73 | 73 | <description> |
74 | 74 | 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 [param delta] variable should be constant. [param delta] is in seconds. |
75 | 75 | It is only called if physics processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_physics_process]. |
| 76 | + Processing happens in order of [member process_physics_priority], lower priority values are called first. Nodes with the same priority are processed in tree order, or top to bottom as seen in the editor (also known as pre-order traversal). |
76 | 77 | Corresponds to the [constant NOTIFICATION_PHYSICS_PROCESS] notification in [method Object._notification]. |
77 | 78 | [b]Note:[/b] This method is only called if the node is present in the scene tree (i.e. if it's not an orphan). |
78 | 79 | </description> |
|
83 | 84 | <description> |
84 | 85 | Called during the processing step of the main loop. Processing happens at every frame and as fast as possible, so the [param delta] time since the previous frame is not constant. [param delta] is in seconds. |
85 | 86 | It is only called if processing is enabled, which is done automatically if this method is overridden, and can be toggled with [method set_process]. |
| 87 | + Processing happens in order of [member process_priority], lower priority values are called first. Nodes with the same priority are processed in tree order, or top to bottom as seen in the editor (also known as pre-order traversal). |
86 | 88 | Corresponds to the [constant NOTIFICATION_PROCESS] notification in [method Object._notification]. |
87 | 89 | [b]Note:[/b] This method is only called if the node is present in the scene tree (i.e. if it's not an orphan). |
88 | 90 | </description> |
|
1015 | 1017 | The node's processing behavior (see [enum ProcessMode]). To check if the node can process in its current mode, use [method can_process]. |
1016 | 1018 | </member> |
1017 | 1019 | <member name="process_physics_priority" type="int" setter="set_physics_process_priority" getter="get_physics_process_priority" default="0"> |
1018 | | - Similar to [member process_priority] but for [constant NOTIFICATION_PHYSICS_PROCESS], [method _physics_process] or the internal version. |
| 1020 | + Similar to [member process_priority] but for [constant NOTIFICATION_PHYSICS_PROCESS], [method _physics_process], or [constant NOTIFICATION_INTERNAL_PHYSICS_PROCESS]. |
1019 | 1021 | </member> |
1020 | 1022 | <member name="process_priority" type="int" setter="set_process_priority" getter="get_process_priority" default="0"> |
1021 | | - The node's execution order of the process callbacks ([method _process], [method _physics_process], and internal processing). Nodes whose priority value is [i]lower[/i] call their process callbacks first, regardless of tree order. |
| 1023 | + The node's execution order of the process callbacks ([method _process], [constant NOTIFICATION_PROCESS], and [constant NOTIFICATION_INTERNAL_PROCESS]). Nodes whose priority value is [i]lower[/i] call their process callbacks first, regardless of tree order. |
1022 | 1024 | </member> |
1023 | 1025 | <member name="process_thread_group" type="int" setter="set_process_thread_group" getter="get_process_thread_group" enum="Node.ProcessThreadGroup" default="0"> |
1024 | 1026 | Set the process thread group for this node (basically, whether it receives [constant NOTIFICATION_PROCESS], [constant NOTIFICATION_PHYSICS_PROCESS], [method _process] or [method _physics_process] (and the internal versions) on the main thread or in a sub-thread. |
|
0 commit comments