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# loop array back 
Csharp :: rating iOS game in unity 
Csharp :: c# winforms input 
Csharp :: c# close all threads application exit 
Csharp :: insert variables into a string C# 
Csharp :: timespan format string c# 
Csharp :: how to find min of an array in c# 
Csharp :: compile c# file in terminal 
Csharp :: c# filesystemwatcher 
Csharp :: c# movement script 
Csharp :: hydrogen fuels 
Csharp :: how to dynamically load value in startup file in c# 
Csharp :: c# reduce a collection to a string 
Csharp :: cancellationtoken.linkedtokensource c# example 
Html :: html yuan symbol 
Html :: disable spell check html 
Html :: add mailto in html 
Html :: favicon html link 
Html :: font awesome icon copy clipboard 
Html :: link email anchor to open up users email address 
Html :: target blanc 
Html :: accepts audio html 
Html :: import font awesome 
Html :: vue datatable date format 
Html :: bootstrap side by side columns 
Html :: html space between characters 
Html :: howto include the single quotes in html 
Html :: plural of axis 
Html :: html link 
Html :: angular foreach 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =