blob: 8e568bf6c63c076700d25951852d156a43a85689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using LibNoise.Operator;
using UnityEngine;
using UnityEditor;
using UNEB;
public class SelectNode : Node
{
private Select _op = new Select();
public override void Init()
{
var inputA = AddInput();
inputA.name = "Input A";
var inputB = AddInput();
inputB.name = "Input B";
var output = AddOutput();
output.name = "Output";
FitKnobs();
bodyRect.height += 60f;
bodyRect.width = 150f;
}
public override void OnBodyGUI()
{
_op.FallOff = EditorGUILayout.DoubleField("Fall Off", _op.FallOff);
_op.Minimum = EditorGUILayout.DoubleField("Min Bound", _op.Minimum);
_op.Maximum = EditorGUILayout.DoubleField("Max Bound", _op.Maximum);
}
}
|