Hi i tried to import ready player me sdk but face with a problem of GLTFast not being able to import .
I receive three errors
Library/PackageCache/com.readyplayerme.avatarloader@354535c151/Runtime/GLTFDeferAgent.cs(1,7): error CS0246: The type or namespace name ‘GLTFast’ could not be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.readyplayerme.avatarloader@354535c151/Runtime/Operations/GltFastAvatarImporter.cs(5,7): error CS0246: The type or namespace name ‘GLTFast’ could not be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.readyplayerme.avatarloader@354535c151/Runtime/Operations/GltFastGameObjectInstantiator.cs(1,7): error CS0246: The type or namespace name ‘GLTFast’ could not be found (are you missing a using directive or an assembly reference?)
what should i do next?
Hi, did you get this issue resolved?
I got the same error. Solved it by installing gLTFast manually.
You can follow the instructions here: GitHub - atteneder/glTFast: Efficient glTF 3D import / export package for Unity
- Download the installer package.
- Run it, it sets a “scoped registry” in Unity that can download the packages.
- Exit and reopen Unity. For me, it detected the new scoped registry, installed gLTFast, and those errors went way.
- There were still other errors. I exited and reopened Unity.
1 Like
Thanks I was able to fix it the way you explained , I also had to restart unity editor twice for it to finish installation .
Same issue
Step to Fix the issue.
1 - Remove Ready me Player plugin and gLTFast both if you installed completely.
2 - After that your script got errors comment down the lines, remove all errors.
3 - Restart Unity project
4 - Import Ready me player plugin again it will resolve the error ( GitHub - 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)
5 - Uncomment the code which previously commented
Now Everything working finr
I am unable to get gLTFast to install in 2022.3.9f1. I have tried the approaches above, including restarting multiple times. It simply does not work.
Remove the ReadyPlayerMe components and readd from git. Fixes issue.
I had a similar issue. I keep getting this error.
Library/PackageCache/com.readyplayerme.core@3fbf64a794/Runtime/GLTF/GltFast Game ObjectInstantiator.cs(24,30): error CS0115: ‘GltFastGameObjectInstantiator.AddPrimitive(uint, string, Mesh, int[ ], uint[ ], uint?, float[ ], int)’: no suitable method found to override
I was able to fix it. It seems like the GLTF package was updated and the new version does not play well with Ready player me. To fix this, go to your package manager, click glTFast, then version history, then downgrade to 5.0.0 version.(click the update button for it). Everything compiles with no errors now.