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

Inheritance: UnityEngine.ScriptableObject
Ejemplo n.º 1
0
 void OnSelectionChange()
 {
     Tools.OnSelectionChange();
     Repaint();
 }
Ejemplo n.º 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);
 }