1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
public static void VSeparator () {
GUILayout.Space (12f);
if (Event.current.type == EventType.Repaint) { Texture2D tex = EditorGUIUtility.whiteTexture; Rect rect = GUILayoutUtility.GetLastRect (); GUI.color = new Color (0f, 0f, 0f, 0.25f); GUI.DrawTexture (new Rect (0f, rect.yMin + 6f, Screen.width, 4f), tex); GUI.DrawTexture (new Rect (0f, rect.yMin + 6f, Screen.width, 1f), tex); GUI.DrawTexture (new Rect (0f, rect.yMin + 9f, Screen.width, 1f), tex); GUI.color = Color.white; } }
public static void HSeparator () { GUILayout.Space (12f); if (Event.current.type == EventType.Repaint) { Texture2D tex = EditorGUIUtility.whiteTexture; Rect rect = GUILayoutUtility.GetLastRect (); GUI.color = new Color (0f, 0f, 0f, 0.25f); GUI.DrawTexture (new Rect (rect.xMin + 6f, 0f, 1f, Screen.height), tex); GUI.DrawTexture (new Rect (rect.xMin + 6f, 0f, 4f, Screen.height), tex); GUI.DrawTexture (new Rect (rect.xMin + 9f, 0f, 1f, Screen.height), tex); GUI.color = Color.white; } }
|
近期评论