示例#1
0
文件: NodeBase.cs 项目: wachel/block
 private void doTextureGUI(EditorGuiBase gui)
 {
     gui.beginH();
     {
         gui.labelField("", 10);
         gui.labelField("texture", 64);
         gui.labelField("");
     }
     gui.endH();
     gui.beginH();
     {
         gui.labelField("", 10);
         texture     = (Texture2D)gui.objectField(texture, typeof(Texture2D), true, 64, 64);
         texturePath = gui.getAssetPath(texture);
         gui.beginV();
         {
             gui.space();
             gui.space();
             gui.beginH();
             {
                 gui.labelField("min size:", 60);
                 minSize = gui.floatField("", minSize);
             }
             gui.endH();
             gui.beginH();
             {
                 gui.labelField("max size:", 60);
                 maxSize = gui.floatField("", maxSize);
             }
             gui.endH();
             gui.beginH();
             {
                 gui.labelField("billboard:", 60);
                 bBillboard = gui.toggle("", bBillboard);
             }
             gui.endH();
         }
         gui.endV();
     }
     gui.endH();
 }
示例#2
0
文件: NodeBase.cs 项目: wachel/block
 public override void OnGUI(EditorGuiBase gui)
 {
     label   = gui.textField("name", label);
     value   = gui.silder("value", value, 0f, 1f);
     bPublic = gui.toggle("public", bPublic);
 }