//2D GUI private void OnGUI() { if (gui2D == null) { gui2D = new NavGridTool2DGUI(); } gui2D.Render2DGUI(this); }
//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 }