Class used to manipulate the tools used in Unity's Scene View.

Inheritance: UnityEngine.ScriptableObject
 void OnSelectionChange()
 {
     Tools.OnSelectionChange();
     Repaint();
 }
Beispiel #2
0
 private void OnEnable()
 {
   Tools.s_Get = this;
   EditorApplication.globalEventHandler += new EditorApplication.CallbackFunction(Tools.ControlsHack);
   Tools.pivotMode = (PivotMode) EditorPrefs.GetInt("PivotMode", 0);
   Tools.rectBlueprintMode = EditorPrefs.GetBool("RectBlueprintMode", false);
   Tools.pivotRotation = (PivotRotation) EditorPrefs.GetInt("PivotRotation", 0);
   Tools.visibleLayers = EditorPrefs.GetInt("VisibleLayers", -1);
   Tools.lockedLayers = EditorPrefs.GetInt("LockedLayers", 0);
 }