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# list audio devices 
Csharp :: c# how to find character in string 
Csharp :: c# string code ascii 
Csharp :: item switch unity 
Csharp :: c# string from b64 
Csharp :: how to get specific length of row in matrix c# 
Csharp :: c# space as string 
Csharp :: parsing string to int c# 
Csharp :: remove items from one list in another c# 
Csharp :: .net core copy directory to output 
Csharp :: create new .net project 
Csharp :: c# datagridview rows clear not working 
Csharp :: Convert DataTable to Dictionary in C# 
Csharp :: how to remove white spaces from string in c# 
Csharp :: get list length c# 
Csharp :: how to select time and date in datetimepicker in c# 
Csharp :: top level statements c# 
Csharp :: c# remove char from string 
Csharp :: constructor c# 
Csharp :: c# use api rest 
Csharp :: c# array of class 
Csharp :: c# get custom attribute from property 
Csharp :: vb.net add row to datagridview programmatically 
Csharp :: priority queue c# 
Csharp :: C# clear form 
Csharp :: c# remove duplicates from list 
Csharp :: Hello World Dotnet 
Csharp :: Winform on exit run method 
Csharp :: interpolate rotation unity3d 
Csharp :: mvc string format 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =