We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68133ea commit 22823ebCopy full SHA for 22823eb
1 file changed
docs/reference/game/addScenePopHandler.md
@@ -0,0 +1,14 @@
1
+## addScenePopHandler
2
+Registers a handler that runs whenever a scene is popped onto the scene stack.
3
+
4
+## Parameters
5
+handler: the code that runs
6
7
+## Example
8
+Set a new background color (blue) when the scene has popped.
9
+``` ts
10
+ game.popScene();
11
+ game.addScenePopHandler(() => {
12
+ scene.setBackgroundColor(8);
13
+ });
14
+```
0 commit comments