diff --git a/Editor/UI/Localization/LanguagePrefs.cs b/Editor/UI/Localization/LanguagePrefs.cs index fdcb321..186ebbe 100644 --- a/Editor/UI/Localization/LanguagePrefs.cs +++ b/Editor/UI/Localization/LanguagePrefs.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Runtime.CompilerServices; +using UnityEngine; namespace nadena.dev.ndmf.localization { @@ -84,7 +85,14 @@ private static void TriggerLanguageChangeCallbacks() { foreach (Action op in new List(_onLanguageChangeCallbacks)) { - op(); + try + { + op(); + } + catch (Exception e) + { + Debug.LogException(e); + } } } }