Offline 3D Tileset Fails to Load Without Internet Connection
I’m trying to use Cesium for Unity with my own offline 3D Tiles data. When I run the app without an internet connection, I get the following error in the Unity Console:
As soon as I reconnect to the internet, the tileset loads successfully. This makes offline usage impractical, since it appears to still require a connection to Cesium Ion. Is this intended behavior? If not, how can I configure Cesium for Unity to load local tilesets entirely offline?
Environment:
Unity Version: 6000.0.36f1 Cesium for Unity Version: 1.16.0
Relevant Links:
Loading local data without internet? Offline data for Cesium Unity Cesium Unity datasets tutorial (local directory) CesiumJS Ion in offline environment
I have raised a PR about the problem: https://github.com/CesiumGS/cesium-unity/pull/575
Hi @Heisenberk-Karabay,
I'm trying to reproduce the behavior in this issue so I can test your PR. However, I was able to load a tileset while being offline just fine:
This is a tileset.json with a single root tile, stored on disk. And it's loaded via a Cesium3DTileset I created after opening the Editor and seeing the console errors. What data are you trying to load that's giving you this issue?
(This doesn't mean your PR is invalid, I just want to figure out where exactly the error is occurring. Thanks!)
Here is my data folder i reference the "tileset.json" in here.
"tileset.json" is referencing to the "Data" folder.
"Data" folder is as shown here.
Tile folder consists the geometries.
I also loaded the data using a Cesium3DTileset, specifying the path to the "tileset.json" file.
https://github.com/user-attachments/assets/8b5a5a7a-2c5a-4325-bdfb-8c4ec3874586
I’d like to clarify the issue: the tileset appears in the preview, but when I run the application, it disappears.
Thanks for the additional info @Heisenberk-Karabay. I confirmed I can see the same thing -- the data loads fine in the Editor, but fails to show up in play mode.