protected void DrawInput(Rect r, Variable variable) { if (variable == null) { return; } VariableEditor.VariableField(r, variable, fieldStyle); }
public override void OnInspectorGUI() { INodeCollection myTarget = (INodeCollection)target; Node node = (Node)myTarget; if (node.Variables.Count() == 0) { return; } Variable variable = node.Variables.GetByID(myTarget.SelectedVariableID); VariableEditor.OnInspectorGUI(variable); }
protected override void onGUI() { RandomNode myTarget = (RandomNode)target; EditorGUIExtension.SimpleBox("", 5, "", delegate() { var min = myTarget.Variables.GetByName("Min"); var max = myTarget.Variables.GetByName("Max"); VariableEditor.VariableField(min, null, true); VariableEditor.VariableField(max, null, true); }); EditorGUILayout.Space(); }