public override void OnInspectorGUI() { SettingStatus.TargetSerializedObject.Update(); { _scrollPos = EditorGUILayout.BeginScrollView(_scrollPos); { DrawHeader(SettingStatus); EditorGUIHelper.DrawFoldouts(_foldouts); DrawOverwrite(SettingStatus); DrawIsAssetsMenuItem(); DrawPrefab(SettingStatus); EditorGUIHelper.DrawFoldout(_descriptionFoldout); } EditorGUILayout.EndScrollView(); DrawCreate(); UpdateFoldout(); UpdateReplaceList(); } SettingStatus.TargetSerializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { var isChanged = false; serializedObject.Update(); { isChanged = DrawSettingList(); EditorGUIHelper.DrawFoldouts(_foldoutList); TemplateSettingEditor.DrawReplace(_replaceList, _groupSetting.GetInstanceID().ToString()); DrawIsAssetsMenuItem(); DrawCreate(); EditorGUIHelper.DrawFoldout(_descriptionFoldout); UpdateReplaceList(); } serializedObject.ApplyModifiedProperties(); if (isChanged) { BuildSettingList(); } }