public override void OnInspectorGUI() { serializedObject.Update(); var anim = serializedObject.FindProperty("anim"); EditorGUILayout.PropertyField(anim); if (IntList != null) { IntList.DoLayoutList(); } if (FloatList != null) { FloatList.DoLayoutList(); } if (BoolList != null) { BoolList.DoLayoutList(); } if (TriggerList != null) { TriggerList.DoLayoutList(); } serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { serializedObject.Update(); var exeType = serializedObject.FindProperty("exeType"); EditorGUILayout.PropertyField(exeType); var DelayTime = serializedObject.FindProperty("DelayTime"); EditorGUILayout.PropertyField(DelayTime); var anim = serializedObject.FindProperty("anim"); EditorGUILayout.PropertyField(anim); var AnimatorController = serializedObject.FindProperty("AnimatorController"); EditorGUILayout.PropertyField(AnimatorController); if (IntList != null) { IntList.DoLayoutList(); } if (FloatList != null) { FloatList.DoLayoutList(); } if (BoolList != null) { BoolList.DoLayoutList(); } if (TriggerList != null) { TriggerList.DoLayoutList(); } serializedObject.ApplyModifiedProperties(); }