readyplayerme / rpm-unity-sdk-core

This Module contains all the core functionality required for using Ready Player Me avatars in Unity, including avatar loading and creation
MIT License
97 stars 33 forks source link

After upgrade to latest version, plugin stopped working. #235

Closed likwifi closed 9 months ago

likwifi commented 9 months ago

Describe the bug After upgrade to latest version, plugin stopped working. Getting following error, when trying to open settings.

Unity Version: 2022.3.10f1 OS: Mac OS, Silicon. Target Platform: IOS


NullReferenceException: Object reference not set to an instance of an object
ReadyPlayerMe.Core.Editor.SetupGuide.CreateGUI () (at ./Library/PackageCache/com.readyplayerme.core@527dab7a31/Editor/Core/Scripts/UI/EditorWindows/SetupGuide/SetupGuide.cs:48)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <8f2b770c4a1b401a99ba9ed80a5c09b9>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <8f2b770c4a1b401a99ba9ed80a5c09b9>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <8f2b770c4a1b401a99ba9ed80a5c09b9>:0)
UnityEditor.UIElements.DefaultEditorWindowBackend.Invoke (System.String methodName) (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/WindowBackends/DefaultEditorWindowBackend.cs:358)
UnityEditor.EditorWindow:GetWindow()
ReadyPlayerMe.Core.Editor.SetupGuide:ShowWindow() (at ./Library/PackageCache/com.readyplayerme.core@527dab7a31/Editor/Core/Scripts/UI/EditorWindows/SetupGuide/SetupGuide.cs:40)
rk132 commented 9 months ago

@likwifi It's most likely Unity stored the old version in the cache and didn’t update it with the new version. Could you try to clear the cache Global Cache and restart the editor? You can also try to reimport all of the packages (Assets/Reimport all), but there’s a warning with that in the unity that you need to consider.

Let me know, if it helps.

likwifi commented 9 months ago

Thank you @rk132 it worked after I've reimported RPM Core package.