Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity how to stop the game

The most convenient method for pausing the game in Unity is by setting the game’s time scale to zero (Time.timeScale = 0), which effectively pauses all time based operations including movement, physics and animation. Setting the time scale to one again will return the game to its normal speed.
Source by gamedevbeginner.com #
 
PREVIOUS NEXT
Tagged: #unity #stop #game
ADD COMMENT
Topic
Name
1+6 =