mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Merge pull request #2524 from Kaligule/patch-1
Add example code for setting the pause mode
This commit is contained in:
@@ -50,6 +50,15 @@ property in a node:
|
||||
|
||||
.. image:: img/pausemode.png
|
||||
|
||||
You can achieve the same result in code:
|
||||
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
func _ready():
|
||||
pause_mode = Node.PAUSE_MODE_PROCESS
|
||||
|
||||
By default all nodes have this property in the "Inherit" state. This
|
||||
means, that they will only process (or not) depending on what this same
|
||||
property is set on the parent node. If the parent is set to "Inherit" ,
|
||||
|
||||
Reference in New Issue
Block a user