public override void OnInspectorGUI() { DrawDefaultInspector(); if (GUILayout.Button("Save changes")) { EnumGenerator.GenerateEnumFromStringList("AudioClipTypes", "AudioClipType", ((SoundsConfig)target).GetAvailableNames() .Where(objName => _provider.IsValidIdentifier(objName))); } }
public override void OnInspectorGUI() { serializedObject.Update(); _objectsInfo?.DoLayoutList(); serializedObject.ApplyModifiedProperties(); if (GUILayout.Button("Save changes")) { EnumGenerator.GenerateEnumFromStringList("PoolObjectTypes", "ObjectType", ((ObjectsConfig)target).ObjectsList.Select(obj => obj.Name) .Where(objName => _provider.IsValidIdentifier(objName))); } }