[SOLVED] Sound is missing on launch outside the editor

For some reason, when I load any of my games on their own without opening it in the editor, all of the sound is missing until the left mouse button is clicked. In my platformer, however, the player model is just gone.
Here they all are:
https://playcanvas.com/project/1034604/overview/pingis-pizza-quest
https://playcanvas.com/project/1035636/overview/pingis-pizza-quest-painmode
https://playcanvas.com/project/1035819/overview/expungeds-unfair-platformer
If anyone has any solutions, give them ASAP!

This is as expected. For security reasons most browsers don’t allow to play a sound until the user gives an input (like a mouse click).

2 Likes

That makes sense, but what about the missing model?

The model is not missing in the launch version of your project, so I suggest to create a new build for the project.

1 Like

I see the model is also missing in a new build. I can’t think of what could be causing this. I would like to ask @yaustar to take a look at this. Thanks.

1 Like

Can you please add clear steps on which project, scene and build link to look at please?

Also, which model is missing?

1 Like

In the project below, the green player entity with the name Bandu, is missing in the build of the project. Scripts of the entity are working, but the entity is not visible.

https://playcanvas.com/project/1035819/overview/expungeds-unfair-platformer

1 Like

Looks like there’s an issue with the GLB (see the red circle)

You will need to upload the FBX again and re-add it to the scene

2 Likes

Any idea why the model seems to work in the launch version of the project?

1 Like

Nope. I assume some issue where the file cannot be found during the publish process or something else

2 Likes

I found this text file in the .zip labeled 1654672.json, does this excerpt have anything to do with it?

"name":"Bandu","components":{"collision":{"enabled":true,"type":"sphere","halfExtents":[0.348,0.609,0.407],"radius":0.43,"axis":1,"height":0.8,"asset":null,"renderAsset":null,"linearOffset":[0,-0.09,-0.035],"angularOffset":[0,0,0]},"rigidbody":{"enabled":true,"type":"dynamic","mass":1,"linearDamping":0,"angularDamping":0,"linearFactor":[1,1,1],"angularFactor":

Here’s a Google Doc with the whole file copy-pasted, if it’s needed. I highlighted everything to do with Bandu.

Never mind, I imported a new model and it fixed itself.