Answers for "unity slow movng"

C#
0

slow mo in unity

using UnityEngine;

public class SlowMo : MonoBehaviour
{
    void Update()
    {
    if (Input.GetKeyDown(KeyCode.//input key))
        {
        Time.timeScale = 0.3f; //<-- this value is for slow down intensity
        }
    if (Input.GetKeyUp(KeyCode.//input key))
        {
        Time.timeScale = 1f;
        }        
    }
}
Posted by: Guest on June-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language