From db52c60bbee1bed02a9307c615432d1ac3074a93 Mon Sep 17 00:00:00 2001 From: Kaligule Date: Tue, 11 Jun 2019 08:18:38 +0200 Subject: [PATCH] Add example code for setting the pause mode --- tutorials/misc/pausing_games.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tutorials/misc/pausing_games.rst b/tutorials/misc/pausing_games.rst index 153e35ce3..52a5aaea0 100644 --- a/tutorials/misc/pausing_games.rst +++ b/tutorials/misc/pausing_games.rst @@ -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" ,