Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
GlimpseGroupDev's avatar
9 months ago

Meta full body animation bug

This is a helpful post in case you experience the same problem

There is a bug in the Meta full body SDK that you may run into. 

If you have two avatars in your scene that both use "OvrAvatarAnimationBehavior", after you destroy one of them, the others animations will break and stop updating the avatars chest rotation properly.

This is because in the OnDestroy() of that class, it sets several variables to null. A few of these are static events, such as "_rootAngleEvent". This means that when one animation behavior is destroyed, it will destroy the events for the other as well because they both reference the same static event. I have no idea why meta built it like this. I removed the word static from these events and now I do not have the bug anymore.

The fully body animations that are provided are extremely buggy in general, I do not know how anyone is supposed to use them out of the box. I have had to make extensive changes to get them to a usable spot