Created
October 31, 2017 07:22
-
-
Save kalineh/cea40f340dda18d6e121830fbe25fe6a to your computer and use it in GitHub Desktop.
EditorTimeScale.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class EditorTimeScale | |
: EditorWindow | |
{ | |
[MenuItem("Tools/TimeScale &T")] | |
public static void TimeScale() | |
{ | |
var window = GetWindow<EditorTimeScale>(); | |
} | |
public void OnGUI() | |
{ | |
Time.timeScale = EditorGUILayout.Slider("Time Scale", Time.timeScale, 0.0f, 2.0f); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment