Terrain and tiles not loading in Unity web build

Hi there. Disclaimer: I’m very new to both Unity and Cesium (this is my very first project!). I’ve put together a basic driving simulator that allows the player to control a car on top of Cesium world terrain and has Google Photorealistic 3D Tiles loaded on top. This all works fine on macOS, but for a WebGL build, only the car loads and none of the map information renders. The issue persists for a local host as well as on GitHub. I’ve attached screenshots of both how it looks on the browser and how it renders on Unity.

I’ve tried messing with a bunch of settings, including the compression and Cesium token permissions. I have Run In Background enabled.


Any advice would be much appreciated!

@almusalhi Unfortunately, WebGL builds aren’t supported at this time. This is because Cesium for Unity relies on a native library, Cesium Native, which Unity can’t translate into something that can be loaded in the web browser. We’ve got a long-standing issue in Cesium Native to investigate using Native with Web Assembly, which would allow WebGL builds to be possible. I can’t promise anything in the immediate future, but keep an eye on that issue for more updates.

1 Like