cesium-unreal icon indicating copy to clipboard operation
cesium-unreal copied to clipboard

Add a callback for tileset and tile errors at runtime

Open yateam opened this issue 3 years ago • 2 comments

Hello, in my program I add tilesets in runtime. I spawn tileset actors and set Url or Id (+TilesetSource). Everything works fine until I provide an invalid id or url. I see in the error log that Cesium can't load tiles and gives me an error (tileset.cpp: 145, something about 401 error).

How do I handle that error in Unreal? I want to let users know that id or url they provided are incorrect.

yateam avatar Jul 08 '21 06:07 yateam

@yateam there's not currently a good way to do this. Probably the best you could do is install a custom spdlog log sink to receive error messages. Cesium for Unreal uses the default spdlog logger.

kring avatar Aug 05 '21 02:08 kring

We have a callback in cesium-native now, but it still needs to be exposed in cesium-unreal.

kring avatar May 03 '22 12:05 kring