Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Editor/AutoLOD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down