Animator not working in build

Hi, I have a couple of states and animations in animator for my objects. All works fine when I start my app via Unity Editor, but when I make a build and upload to a server, animations don’t work and I receive no errors in console. Thanks for any answers.

Original Post on Discord

by user 606919514772340737

Hello, does it work using the local server?

yes

by user 606919514772340737

Do you see any errors during deployment in the Unity console related to animations?
Can you open your hosted website using ?printGltf and inspect the chrome console - it prints the loaded Gltf and has an animations array.

I will try.

by user 606919514772340737

by user 606919514772340737

maximum call stack size exceeded requestAnimationFrame(async)

by user 606919514772340737

Could you share the link with me?

by user 606919514772340737

hit play

by user 606919514772340737

nice music ^^

free christmas banjo jingle bells :smile:

by user 606919514772340737

haha

cards are supposed to rotate when you click them

by user 606919514772340737

haha the rules

ok trying to figure out whats wrong now

I also played with Animation class instead of Animator, there I can’t make the animations NOT loop.

when I use:

var playOptions = new PlayOptions();
playOptions.loop = false;
this.animation.play(“Card flip”, playOptions);

everything is fine on local server, but I can’t build the project I just get this weird error, that says “at error” . So all Iam trying to do is play the animation on not make it loop.

by user 606919514772340737

but if you could help with the Animator, which is my prefered solution, that would be great

by user 606919514772340737

Could you send me a zip with the scene? (via Help/Needle Engine/Zip scene)

https://drive.google.com/file/d/1d0iEuUmGQRLzTsMv3jxHIKcAOMoRpBNC/view?usp=share_link

by user 606919514772340737