diff --git a/Editor/Core/Scripts/UI/EditorWindows/AvatarLoaderEditor/AvatarLoaderEditor.cs b/Editor/Core/Scripts/UI/EditorWindows/AvatarLoaderEditor/AvatarLoaderEditor.cs index b3273317..d9bcca86 100644 --- a/Editor/Core/Scripts/UI/EditorWindows/AvatarLoaderEditor/AvatarLoaderEditor.cs +++ b/Editor/Core/Scripts/UI/EditorWindows/AvatarLoaderEditor/AvatarLoaderEditor.cs @@ -44,7 +44,8 @@ public void CreateGUI() headerLabel.text = AVATAR_LOADER; var useEyeAnimationsToggle = rootVisualElement.Q(USE_EYE_ANIMATIONS_TOGGLE); - useEyeAnimationsToggle.value = EditorPrefs.GetBool(EYE_ANIMATION_SAVE_KEY); + useEyeAnimations = EditorPrefs.GetBool(EYE_ANIMATION_SAVE_KEY); + useEyeAnimationsToggle.value = useEyeAnimations; useEyeAnimationsToggle.RegisterCallback>(evt => { useEyeAnimations = evt.newValue; @@ -52,7 +53,8 @@ public void CreateGUI() }); var useVoiceToAnimToggle = rootVisualElement.Q(USE_VOICE_TO_ANIMATION_TOGGLE); - useVoiceToAnimToggle.value = EditorPrefs.GetBool(VOICE_TO_ANIM_SAVE_KEY); + useVoiceToAnim = EditorPrefs.GetBool(VOICE_TO_ANIM_SAVE_KEY); + useVoiceToAnimToggle.value = useVoiceToAnim; useVoiceToAnimToggle.RegisterCallback>(evt => { useVoiceToAnim = evt.newValue;