예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
 public static void StartGL(this MonoBehaviour mono)
 {
     StartGLWorld(mono);
     GLUI.LoadOrtho();
 }