public override void DrawWindow(BaseNode b) { #if UNITY_EDITOR BehaviourEditor.GetEGLLable("area: ", GUIStyle.none); b.randomMoveArea = EditorGUILayout.TextField(b.randomMoveArea); #endif }
public override void DrawWindow(BaseNode b) { #if UNITY_EDITOR BehaviourEditor.GetEGLLable("Layer: ", GUIStyle.none); b.animationLayer = EditorGUILayout.IntField(b.animationLayer); b.AnimatorActivatorType = (EAnimatorActivator)EditorGUILayout.EnumPopup(b.AnimatorActivatorType); BehaviourEditor.GetEGLLable("parameter: ", GUIStyle.none); b.parameter = EditorGUILayout.TextField(b.parameter); BehaviourEditor.GetEGLLable("Value: ", GUIStyle.none); switch (b.AnimatorActivatorType) { case EAnimatorActivator.Trigger: BehaviourEditor.GetEGLLable("Trigger", GUIStyle.none); break; case EAnimatorActivator.Float: b.AnimatorActivatorFloatValue = EditorGUILayout.FloatField(b.AnimatorActivatorFloatValue); break; case EAnimatorActivator.Bool: b.AnimatorActivatorBoolValue = EditorGUILayout.Toggle(b.AnimatorActivatorBoolValue); break; case EAnimatorActivator.Int: b.AnimatorActivatorIntValue = EditorGUILayout.IntField(b.AnimatorActivatorIntValue); break; } #endif }
public override void DrawWindow(BaseNode b) { #if UNITY_EDITOR BehaviourEditor.GetEGLLable("target: ", GUIStyle.none); b.destinationTargetName = EditorGUILayout.TextField(b.destinationTargetName); #endif }
public override void DrawWindow(BaseNode b) { GUIStyle s = new GUIStyle(); s.fontSize = 30; s.richText = true; s.margin.left = 75; BehaviourEditor.GetEGLLable("Stop", s); }
static void ShowEditor() { BehaviourEditor editor = GetWindow <BehaviourEditor>(); editor.minSize = new Vector2(800, 600); }