public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.BeginVertical(EditorStyles.helpBox); ModPlatform supportedPlatforms = (ModPlatform)EditorGUILayout.EnumMaskField("Supported Platforms", (ModPlatform)_supportedPlatforms.intValue); ModContent supportedContent = (ModContent)EditorGUILayout.EnumMaskField("Supported Content", (ModContent)_supportedContent.intValue); LogLevel logLevel = (LogLevel)EditorGUILayout.EnumPopup("Log Level", (LogLevel)_logLevel.intValue); _supportedPlatforms.intValue = supportedPlatforms.FixEnum(); _supportedContent.intValue = supportedContent.FixEnum(); _logLevel.intValue = (int)logLevel; EditorGUILayout.EndVertical(); serializedObject.ApplyModifiedProperties(); }