- Home /
Question by
Daniel Girgis · Nov 02, 2010 at 06:36 AM ·
slowmotionshift
Heres a Script for SloMo hold left shift
using UnityEngine; using System.Collections;
public class ShiftForSloMo : MonoBehaviour {
public int SetSlomoSpeed = 0;
// Use this for initialization void Start () {
}
// Update is called once per frame void Update () {
if(Input.GetKeyDown(KeyCode.LeftShift))
Time.timeScale = SetSlomoSpeed + .3f;
if(Input.GetKeyUp(KeyCode.LeftShift))
Time.timeScale = 1f;
}
}
Comment
its not really a question but if people are looking for a script for slo motion here it is its in C# btw
Best Answer
Answer by _Petroz · Nov 02, 2010 at 10:53 AM
There is a place for this stuff on the wiki:
Answer by ZhavShaw · Jul 09, 2014 at 05:32 AM
JS FIXED
#pragma strict
var SetSlomoSpeed : int = 0;
function Start () {
}
function Update () {
if(Input.GetKeyDown(KeyCode.LeftShift)){
Time.timeScale = SetSlomoSpeed + .3f;
}
else{
if(Input.GetKeyUp(KeyCode.LeftShift)){
Time.timeScale = 1f;
}
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613081655im_/https://answers.unity.com/themes/thub/images/avi.jpg)