/// <summary> /// Closes the Navigation Field. (Optional) Draws additional controls on top of the content. /// </summary> public static void EndNavigationField(bool showNativeControls = true) { Gl.EndArea(); //end offset area if (lastDrawnNavField != null) { if (showNativeControls) { if (G.Button(new U.Rect(lastDrawnNavField.backupRect.width - lastDrawnNavField.border - 23, 5, 20, 20), new U.GUIContent("+", "Center View"))) { lastDrawnNavField.CenterView(); } } #if UNITY_EDITOR G.Button(new U.Rect(0, 0, lastDrawnNavField.backupRect.width, lastDrawnNavField.backupRect.height), "", "Label"); //force hot control #endif } Gl.EndArea(); //end field viewport area if (lastDrawnNavField != null) { lastDrawnNavField.DragUpdate(); } lastDrawnNavField = null; }
public static void EndArea() { UGUI.EndArea(); }