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