Camera in game launch doesn't show materials but it does when I spectate it in editor

I am working on a game and I am noticing that when I spectate a camera and I look at a sphere with a texture it shows the texture, but in the Launch it doesn’t
In editor:

In Launch:

I have another camera and it does the same thing with the same settings. Is it because I have 2 cameras? Any help with this would be greatly appreciated! Link: PlayCanvas 3D HTML5 Game Engine The scene is called spaceship test, and if you search camera it should show both cameras.

Hi @Codeknight999!

I didn’t found a problem with your setup on my mobile, but your code is not correct.

Make sure all if statements are closed with only a } sign and your functions are closed with the }; signs.