public override void OnInspectorGUI() { serializedObject.Update(); _tweenBuilder.WrapMode = (WrapMode)EditorGUILayout.EnumPopup("Wrap Mode", _tweenBuilder.WrapMode); _tweenBuilder.LoadOnStart = EditorGUILayout.Toggle("Load On Start", _tweenBuilder.LoadOnStart); _tweenBuilder.PlayOnStart = EditorGUILayout.Toggle("Play On Start", _tweenBuilder.PlayOnStart); if (_list.count != 0) { if (GUILayout.Button("Load Tweens")) { _tweenBuilder.LoadTweens(); } } _list.DoLayoutList(); serializedObject.ApplyModifiedProperties(); if (GUI.changed) { EditorUtility.SetDirty(_tweenBuilder); } }