#WebGL gameloop pausing

1 messages · Page 1 of 1 (latest)

frail igloo
#

I'm making a portfolio website for myself to show off Unity projects I made. I'm trying to implement a pause button in my iframe that pauses the game. For that I need to access Unity's gameloop. Can anyone tell me how that works?

dawn compass
#

You can't modify the game from the outside. What you can do for example is have the pause button set a global Javascript variable and in the Unity game read the variable every Update and pause if it's set