Forum Discussion
TriplePete
2 years agoMHCP Member
Unable to render Meta Avatars SDK v24.0
I have updated Meta Avatars SDK to v24.0. I did change to the new AvatarSdkManagerMeta prefab containing the the new MetaAvatarShaderManager. The MetaAvatarShaderManager references the two MetaShaderConfiguration.asset and MetaShaderConfigurationVertex.asset.
Everything looks nice and works well in Unity Editor and in Meta XR Simulator - avatars renders as intended.
But when building apk I get two errors:
"Shader error in 'Avatar/Meta': "UNITY_INSTANCING_PROCEDURAL_FUNC must be defined." and Shader error in 'Avatar/Meta': redefinition of 'UnityDisplayOrientationPreTransform'"
The apk builds but avatars is not rendered on HMD.
10 Replies
- TriplePeteMHCP Member
This is how it looks in the inspector:
- LontisHonored Guest
I get the same but my build fails.
- cccccQExplorer
Have you resolved it and how did you resolve it?
- TriplePeteMHCP Member
Yes, I did the same, used AvatarSdkManagerHorizon instead of AvatarSdkManagerMeta.
- cccccQExplorer
But the AvatarSdkManagerHorizon has already marked deletion in the v24 version.
- BeardyDevStart Partner
Cheers TriplePete, glad to hear you found the same solution.
cccccQAvatarSdkManagerHorizon is being depreciated but it works for now. I have kept the AvatarSdkManagerMeta inactive in my scene as a reminder to test it in the next update when it comes out. - larryPlayablExplorer
I am experiencing the same. I'll try the AvatarSdkManagerHorizon workaround as well. URP is a very common way to work in Unity now, so it'd be great for Meta to release a compatible supported Avatar shader.
- TriplePeteMHCP Member
Meta has released Meta Avatars 24.1.1 that solves the problem. It also solves the problem with LOD-levels for the avatars. Thx KevinJ!
- BeardyDevStart Partner
Awesome! Thanks TriplePete for letting me know!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 3 months ago
- 1 year ago
- 1 month ago