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# substring until character single 
Csharp :: c# xml comment type reference 
Csharp :: c# make file writable 
Csharp :: #ifdef in c 
Csharp :: on collision unity 
Csharp :: get domain name from email in asp.net c# 
Csharp :: c# loop class properties add to array 
Csharp :: unity get prefabs from folder 
Csharp :: unity position ui element 
Csharp :: C# unit test exception using attribrute 
Csharp :: Unity rainbow color changing object 
Csharp :: c# const vs readonly 
Csharp :: C# int array initial values 
Csharp :: class in c# 
Csharp :: how to redirect to another page in button clicked in asp.net c# index.cshtml 
Csharp :: unity ui button 
Csharp :: C# xamaring form change text on label 
Csharp :: c# object list to joined string 
Csharp :: render section asp.net mvc layout 
Csharp :: c# get smallest of 3 numbers 
Csharp :: c# get random between 0 and 1 
Csharp :: select specific columns from datatable in c# using lambda 
Csharp :: unitry raycast 
Csharp :: docker Test a Connection using Curl 
Csharp :: How to print text to screen in c# 
Csharp :: linq select max value from list 
Csharp :: game maker transparent 
Csharp :: referans tipi nedir c# 
Csharp :: c# draggable controls 
Csharp :: c# recorrer una lista 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =