Answers for "how to pause your game unity"

C#
10

how to pause your game unity

using UnityEngine;

void Pause()
{
	Time.timeScale = 0;
}

void Unpause()
{
    Time.timeScale = 1;
}
Posted by: Guest on December-23-2020
3

how to make a pause feautre in unity

if(Pause){
	Time.timeScale = 0;
}
else{
	Time.timeScale = 1;
}
Posted by: Guest on May-29-2020
2

how to pause physics in unity c#

Physics.autoSimulation = false;
Posted by: Guest on April-13-2020

C# Answers by Framework

Browse Popular Code Answers by Language