Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HumanoidSetup needs to check "isHuman" #681

Closed
FujiSunflower opened this issue Feb 1, 2024 · 1 comment
Closed

HumanoidSetup needs to check "isHuman" #681

FujiSunflower opened this issue Feb 1, 2024 · 1 comment

Comments

@FujiSunflower
Copy link

Before

If HumanDescription is wrong, the avatar is not human but generic as "isValid".

Aftar

So we will fix it like this.
if (!avatar.isValid || !avatar.isHuman)

References

https://docs.unity3d.com/ScriptReference/Avatar-isHuman.html
https://docs.unity3d.com/ScriptReference/Avatar-isValid.html

pfcDorn pushed a commit to prefrontalcortex/UnityGLTF that referenced this issue Feb 2, 2024
pfcDorn pushed a commit to prefrontalcortex/UnityGLTF that referenced this issue Feb 2, 2024
pfcDorn pushed a commit to prefrontalcortex/UnityGLTF that referenced this issue Feb 2, 2024
@pfcDorn
Copy link
Contributor

pfcDorn commented Feb 2, 2024

i have fixed it with 5363224
Thx!

pfcDorn pushed a commit to prefrontalcortex/UnityGLTF that referenced this issue Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants