Hello !
I have a simple project where I move objects throught Transform.Translate.
If I enter play mode with game tab visible, the objects are moving fine.
However if I switch to the scene tab, with hiding the game view (close the tab or simply make it not visible), the objects suddently stop moving. As if the game is paused.
I don’t if is an issue or if it intended.
Is there a way to prevent this behaviour if game tab is not visible ?
Tahnk you in advance !
depends but input etc only is effected with the game view focused.
You may want to create a simplistic test case, empty scene, simple script that runs Transform.Translate in Update to see if this is a general behaviour. I doubt so.
Probably something else that may be going on. Not sure what exactly happens when the game view gets closed but I could imagine that some Camera operations or visibility checks may fail. Like if you have an Animator that only updates when objects are in the camera frustum. Something like that.
You may want to post the code if it remains totally inexplicable.