The image of the button will be changed after the scene is changed

After I switch the scene, the background image set for the button will also be changed to the default state. I want to keep the background image of the button, can anyone help me solve this problem?

Playground Links:

Hey there, an issue with the render loop is that it only renders the scene once per button click (inside the if block). Here I changed it to assign the active scene to a variable which is rendered each frame (outside of the if block).

Also the set timeout delay isn’t needed to stop the default render loop in the playground anymore, so I removed that part. :slight_smile:

2 Likes

Thank you very much for solving a very big problem :smiley: