Class used to manipulate the tools used in Unity's Scene View.
void OnSelectionChange() { Tools.OnSelectionChange(); Repaint(); }
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); }