Example #1
0
        //3D GUI
        private void OnSceneGUI(SceneView sceneView)
        {
            if (gui3D == null)
            {
                gui3D = new NavGridTool3DGUI();
            }

            gui3D.DrawSubGrid(this);
        }
Example #2
0
        //Initializes Tool
        private void Awake()
        {
            gui2D = new NavGridTool2DGUI();
            gui3D = new NavGridTool3DGUI();

            if (EditorPrefs.HasKey("MAX_HANDLES"))
            {
                NODE_RENDER_LIMIT = EditorPrefs.GetInt("MAX_HANDLES");
            }

            OnSelectionChange();   //Manually call to handle a NavGrid being preselected
        }