private void OnEnable() { activeSettings = ActiveLocalizationSettings.Load(); activeSettingsEditor = Editor.CreateEditor(activeSettings) as ActiveLocalizationSettingsEditor; activeSettingsEditor !.OnActiveSettingsChanged += ActiveSettingsChanged; Undo.undoRedoPerformed += UndoRedoPerformed; UpdateFilter(); UpdateTableFilter(); }
private void OnEnable() { AcquireProperties(); localizedString = target as LocalizedString; localizedString !.Settings = ActiveLocalizationSettings.Load().ActiveSettings; // Update Setter mode to Editor & Runtime var count = localizedString == null ? 0 : localizedString.Setter.GetPersistentEventCount(); for (var i = 0; i < count; i++) { localizedString.Setter.SetPersistentListenerState(i, UnityEventCallState.EditorAndRuntime); } if (rootElement != null) { UpdateWarningVisibility(); } }