// Implement your own custom GUI here if you want to public override void DrawInspectorProperties(AIBehaviors fsm, SerializedObject sObject) { if (fsm.GetComponent <NavMeshAgent>() == null) { Color oldColor = GUI.contentColor; GUI.contentColor = Color.yellow; EditorGUILayout.HelpBox("This trigger only works with an AI that uses a NavMeshAgent", MessageType.Warning); GUI.contentColor = oldColor; } InspectorHelper.DrawInspector(sObject); }
protected override void DrawStateInspectorEditor(SerializedObject m_Object, AIBehaviors stateMachine) { GUILayout.Label("Dead Properties:", EditorStyles.boldLabel); GUILayout.BeginVertical(GUI.skin.box); InspectorHelper.DrawInspector(m_Object); GUILayout.EndVertical(); m_Object.ApplyModifiedProperties(); }
protected override void DrawStateInspectorEditor(SerializedObject m_Object, AIBehaviors stateMachine) { InspectorHelper.DrawInspector(m_Object); m_Object.ApplyModifiedProperties(); }
protected virtual void DrawStateInspectorEditor(SerializedObject stateObject, AIBehaviors stateMachine) { InspectorHelper.DrawInspector(stateObject); stateObject.ApplyModifiedProperties(); }
public virtual void DrawInspectorProperties(AIBehaviors fsm, SerializedObject triggerObject) { InspectorHelper.DrawInspector(triggerObject); }