/// <summary> /// Opens the navigation field drawer. /// </summary> public static void BeginNavigationField(ref NavigationFieldData navField, U.Vector2?restriction = null) { lastDrawnNavField = navField; U.Rect _fieldRect = FindLayoutAreaRect(ref navField.backupRect, navField.border); BeginColorPocket(navField.backgroundColor); Gl.BeginArea(_fieldRect, "", "Box"); EndColorPocket(); navField.DrawBackground(); navField.DragUpdate(); U.Vector2 _restriction = restriction ?? (new U.Vector2(_fieldRect.width, _fieldRect.height) - navField.scrollView); Gl.BeginArea(new U.Rect(navField.scrollView.x, navField.scrollView.y, _restriction.x, _restriction.y)); }
public static void BeginArea(SmartRect rect, string text) { UGUI.BeginArea(rect.ToRect(), text); }
public static void BeginArea(SmartRect rect) { UGUI.BeginArea(rect.ToRect()); }
public static void BeginArea(Rect rect, string text) { UGUI.BeginArea(rect, text); }
public static void BeginArea(Rect rect) { UGUI.BeginArea(rect); }
public static void BeginArea(Rect screenRect, Texture image, GUIStyle style) { GUILayout.BeginArea(screenRect, GUIContent.Temp(image), style); }
public static void BeginArea(Rect screenRect, GUIStyle style) { GUILayout.BeginArea(screenRect, GUIContent.none, style); }
public static void BeginArea(Rect screenRect, string text, GUIStyle style) { GUILayout.BeginArea(screenRect, GUIContent.Temp(text), style); }
public AreaScope(Rect screenRect, GUIContent content, GUIStyle style) { GUILayout.BeginArea(screenRect, content, style); }
public static void BeginArea(Rect screenRect, GUIContent content) { GUILayout.BeginArea(screenRect, content, GUIStyle.none); }
public AreaScope(Rect screenRect, Texture image, GUIStyle style) { GUILayout.BeginArea(screenRect, image, style); }
public AreaScope(Rect screenRect, string text, GUIStyle style) { GUILayout.BeginArea(screenRect, text, style); }
public AreaScope(Rect screenRect, GUIContent content) { GUILayout.BeginArea(screenRect, content); }
public AreaScope(Rect screenRect, string text) { GUILayout.BeginArea(screenRect, text); }
public AreaScope(Rect screenRect) { GUILayout.BeginArea(screenRect); }