[MenuItem("Window/Set Pivot")]         //Place the Set Pivot menu item in the GameObject menu
 static void Init()
 {
     _window = GetWindow <SetPivotWindow>();
     _window.titleContent = new GUIContent("Set Pivot");
     _window.Show();
     _window.SelectionChanged();
 }
 void OnEnable()
 {
     SceneView.duringSceneGui += OnSceneGUI;
     _window         = this;
     _previousTool   = Tools.current;
     _window.minSize = new Vector2(400, 675);
 }