示例#1
0
 protected void DrawInput(Rect r, Variable variable)
 {
     if (variable == null)
     {
         return;
     }
     VariableEditor.VariableField(r, variable, fieldStyle);
 }
示例#2
0
        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);
        }
示例#3
0
        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();
        }