Example #1
0
        protected override void Draw()
        {
            condition.DisplayLayout("Condition");
            returnCondition.DisplayLayout(new GUIContent("Return", "If the condition is true, return Success\nIf the condition is false, return Failure"));

            GUILayout.BeginHorizontal();
            childTrue.DisplayLayout("<color=green><b>T</b></color>");
            childFalse.DisplayLayout("<color=red><b>F</b></color>");
            GUILayout.EndHorizontal();
        }
Example #2
0
        protected override void Draw()
        {
            UnityEditor.EditorGUIUtility.labelWidth = 110;
            UnityEditor.EditorGUIUtility.fieldWidth = 30;

            repetitions.DisplayLayout(new GUIContent("Repetitions", "[rep = -1] Repeat until fail.\n[rep > 0] Repeat this number of times unless fail."));

            GUILayout.BeginHorizontal();
            child.DisplayLayout("Repeat");
            GUILayout.EndHorizontal();
        }
Example #3
0
        protected override void Draw()
        {
            UnityEditor.EditorGUIUtility.labelWidth = 60;
            UnityEditor.EditorGUIUtility.fieldWidth = 40;

            animator.DisplayLayout("Animator");
            animatorLayer.DisplayLayout("Layer");
            animationClip.DisplayLayout("Clip");

            GUILayout.BeginHorizontal();
            child.DisplayLayout("After waiting");
            GUILayout.EndHorizontal();
        }
Example #4
0
        protected override void Draw()
        {
            UnityEditor.EditorGUIUtility.labelWidth = 80;
            UnityEditor.EditorGUIUtility.fieldWidth = 20;

            seconds.DisplayLayout("Seconds");
            skipMinimumAFrame.DisplayLayout(new GUIContent("Skip frame", "if as soon as this node is called its wait time is over, this will still skip one frame."));
            UnityEditor.EditorGUI.ProgressBar(GUILayoutUtility.GetRect(130, 10), (Time.time - startTime) / cachedSeconds, "");

            GUILayout.BeginHorizontal();
            child.DisplayLayout("After waiting");
            GUILayout.EndHorizontal();
        }
Example #5
0
 protected override void Draw()
 {
     GUILayout.BeginHorizontal();
     child.DisplayLayout("Success");
     GUILayout.EndHorizontal();
 }
 protected override void Draw()
 {
     GUILayout.BeginHorizontal();
     child.DisplayLayout("After Interrupting");
     GUILayout.EndHorizontal();
 }