Пример #1
0
 protected override void Draw()
 {
     UnityEditor.EditorGUIUtility.labelWidth = 12;
     GUILayout.BeginHorizontal();
     GUILayout.BeginVertical();
     for (int i = 0; i < inputs.Length; i++)
     {
         GUILayout.BeginHorizontal();
         if (GUILayout.Button("-"))
         {
             inputs[i].OnDelete();
         }
         else
         {
             inputs[i].DisplayLayout((i + 1).ToString());
         }
         GUILayout.EndHorizontal();
     }
     if (GUILayout.Button("+"))
     {
         CreateIO <Input_System_Boolean>();
     }
     GUILayout.EndVertical();
     res.DisplayLayout("Out");
     GUILayout.EndHorizontal();
 }
Пример #2
0
 protected override void Draw()
 {
     UnityEditor.EditorGUIUtility.labelWidth = 12;
     GUILayout.BeginHorizontal();
     a.DisplayLayout("A");
     res.DisplayLayout("Out");
     GUILayout.EndHorizontal();
 }
 protected override void Draw()
 {
     lhs.DisplayLayout("lhs");
     rhs.DisplayLayout("rhs");
     returnVar.DisplayLayout("Return");
 }
 protected override void Draw()
 {
     objA.DisplayLayout("objA");
     objB.DisplayLayout("objB");
     returnVar.DisplayLayout("Return");
 }
 protected override void Draw()
 {
     x.DisplayLayout("x");
     y.DisplayLayout("y");
     returnVar.DisplayLayout("Return");
 }
 protected override void Draw()
 {
     refObject.DisplayLayout("Reference");
     obj.DisplayLayout("obj");
     returnVar.DisplayLayout("Return");
 }