Unity3D in WebGL the Player doesn't have animations

3 posts / 0 new
Last post
goncaloperes
goncaloperes's picture
Unity3D in WebGL the Player doesn't have animations

Hey everyone! smiley

 

I using Unity 2019.2.14f1 to create a simple 3D game.

I want to build the project for WebGL, but, even though the player has animations on Unity, in the web the Player doesn't have animations even though it jumps and moves around [as you can see here].

For the Player, I am using the ThridPersonController from on Standard Assets - but I have hidden Ethan and added my own character/avatar.

ThirdPersonController

And this is the inspector of the avatar:

Santa - Inspector

What am I missing here?

 

Best regards,

Gonçalo Peres

Visibility: 
Public - accessible to all site users
vcard
vcard's picture
Hi goncaloperes

Hi goncaloperes

Nice scene yes

Unless bugged, WebGL player is supposed to behave the same as unity player. Your player is showing at least one: "idle" animation

This is a common issue. As shown by your settings, there are 2 animators controlling for the same purpose (conflicting) and one (on the second picture) has precedence. For this one the character is not moving. The character is moving for the first controller but it's irrelevant because it has ...no precedence.
>>> Solution: disable the second animator !

Be well !

vcard

goncaloperes
goncaloperes's picture
Thanks a lot

Hey professor @vcard! smiley

Indeed the second animator was causing a conflit. Disabling it solve the problem and it is now working properly [check it out].

Best regards,

Gonçalo Peres