Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to pause your game unity

using UnityEngine;

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

void Unpause()
{
    Time.timeScale = 1;
}
Comment

how to pause physics in unity c#

    Physics.autoSimulation = false;
Comment

Unity Pause Game c#

void PauseGame ()
    {
        Time.timeScale = 0f;
        AudioListener.pause = true;
    }

void ResumeGame ()
    {
        Time.timeScale = 1;
        AudioListener.pause = false;
    }Copy
Comment

pause unity game

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

void ResumeGame ()
    {
        Time.timeScale = 1;
    }Copy
Comment

PREVIOUS NEXT
Code Example
Csharp :: c sharp how to read a text file 
Csharp :: c# word randomizer 
Csharp :: aspx textarea 
Csharp :: convert to base64 c# 
Csharp :: how to detect a mouse click in unity 
Csharp :: c# list to string comma separated 
Csharp :: loop through an enum c# 
Csharp :: asp.net core multiple get methods 
Csharp :: Check object is in layermask unity 
Csharp :: c# new thread 
Csharp :: how to call something once in update 
Csharp :: unity 2d how to set an object or the mouse position 
Csharp :: set width of rect transform unity 
Csharp :: c# get current date without time 
Csharp :: how to change the color of your text in c# 
Csharp :: stop audio unity 
Csharp :: Publishing A Single EXE File In.NET Core 
Csharp :: unity change sprite source image 
Csharp :: c# random boolean 
Csharp :: unity change play mode color 
Csharp :: how to convert angle to vector in c# 
Csharp :: if animation ends 
Csharp :: how to access gameobject name 
Csharp :: c# round number down 
Csharp :: percentage in c# 
Csharp :: month number to text in c# 
Csharp :: how to start a coroutine in c# 
Csharp :: q# hello world 
Csharp :: public static void Load 
Csharp :: get random from list c# 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =