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 :: unity instantiate with name 
Csharp :: C# get string as stream 
Csharp :: c# average of 3 numbers 
Csharp :: ubuntu: how to open the terminal from c# 
Csharp :: how do i make multiplayer in unity 
Csharp :: merge point of two list 
Csharp :: c# get class name by type 
Csharp :: compare two binary tree 
Csharp :: unity waituntil coroutine 
Csharp :: c# remove spaces from string 
Csharp :: unity random 
Csharp :: loop over enum values 
Csharp :: how to sort string array alphabetically in c# 
Csharp :: c# timer 
Csharp :: function in Razor Pages 
Csharp :: int to ascii c# 
Csharp :: maximize window c# console 
Csharp :: triangle minimum path sum 
Csharp :: how to get parent gameobject in unity 
Csharp :: wpf richtextbox clear text 
Csharp :: difference between iqueryable and ienumerable c# 
Csharp :: c# build string out of list of strings 
Csharp :: how to clone somthing unity 
Csharp :: unity detect keyboard not mouse 
Csharp :: access to element in object c# 
Csharp :: good food 
Csharp :: replace index in string c# 
Csharp :: Unity Destroy gameObject upon collision 
Csharp :: how to check if a path is a directory or file c# 
Csharp :: change dot net core web api routing 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =