diff --git a/Editor/AutoLOD.cs b/Editor/AutoLOD.cs index a440a72..115015d 100644 --- a/Editor/AutoLOD.cs +++ b/Editor/AutoLOD.cs @@ -683,8 +683,19 @@ static void RemoveLODs(GameObject go) } } +#if UNITY_2018_3_OR_NEWER + [SettingsProvider] + static SettingsProvider PreferencesGUI() + { + return new SettingsProvider("Preferences/AutoLOD", SettingsScope.User) + { + guiHandler = (searchContext) => DeprecatedPreferencesGUI(), + }; + } +#else [PreferenceItem("AutoLOD")] - static void PreferencesGUI() +#endif + static void DeprecatedPreferencesGUI() { EditorGUILayout.BeginVertical(); EditorGUILayout.Space();