public static void BeginOrtho(this object obj, int glOrder = 0) { UI.owner = obj; UI.ClearCmd(); if (glOrder != 0) { UI.gl.order = glOrder; } GLUI._insertOrder = 0; GLUI.BeginOrder(0); GLUI.LoadOrtho(); }
public static void BeginOrtho(this MonoBehaviour mono, int glOrder = 0) { UI.owner = mono.gameObject; UI.ClearCmd(); if (glOrder != 0) { UI.gl.order = glOrder; } GLUI._insertOrder = 0; GLUI.BeginOrder(0); GLUI.LoadOrtho(); }
public static void StartGL(this MonoBehaviour mono) { StartGLWorld(mono); GLUI.LoadOrtho(); }