示例#1
0
文件: NodeBase.cs 项目: wachel/block
 public override void OnGUI(EditorGuiBase gui)
 {
     label = gui.textField("name", label);
     scale = gui.silder("scale", scale, 0f, 10f);
     bias  = gui.silder("bias", bias, -5f, 5f);
     curve = gui.curve("curve", curve);
 }
示例#2
0
文件: NodeBase.cs 项目: wachel/block
 public override void OnGUI(EditorGuiBase gui)
 {
     label       = gui.textField("name", label);
     scale       = gui.silder("scale", scale, 0f, 10f);
     bias        = gui.silder("bias", bias, -5f, 5f);
     localSeed   = gui.intField("local seed", localSeed);
     size        = gui.floatField("size", size);
     octaveCount = gui.intSlider("octaveCount", octaveCount, 1, (int)Mathf.Log(size, 2) + 2);
     curve       = gui.curve("curve", curve);
 }