Cesium unity on hololense

Hi,

I have downloaded the Cesium for Unity samples.

I could start the samples in the unity editor.

Is it possible to run the Cesium for Unity samples on the hololense ?

I could build the UWP app, could deploy it and could start it, but I didn’t get the globe.

In the UnityPlayer.log I see the following error:

Curl error 6: Could not resolve host: api.cesium.com
Curl error 6: Could not resolve host: api.cesium.com
Curl error 6: Could not resolve host: api.cesium.com
[2025-01-22 13:16:38.354] [error] [TilesetContentManager.cpp:905] An unexpected error occurred when loading tile: Request for `https://api.cesium.com/v1/assets/1/endpoint?access_token=<mytoken>` failed: Cannot resolve destination host
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CesiumForUnity.Cesium3DTileset:Update()

[2025-01-22 13:16:38.357] [error] [TilesetContentManager.cpp:905] An unexpected error occurred when loading tile: Request for `https://api.cesium.com/v1/assets/96188/endpoint?access_token=<mytoken>` failed: Cannot resolve destination host
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CesiumForUnity.Cesium3DTileset:Update()

[2025-01-22 13:16:38.357] [error] [RasterOverlayCollection.cpp:130] Error while creating tile provider: Request for `https://api.cesium.com/v1/assets/2/endpoint?access_token=<mytoken>` failed: Cannot resolve destination host
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
CesiumForUnity.Cesium3DTileset:Update()

Could you help - is there a setting, I have read, that there maybe problems with https in the api_url ?

Regards

Rüdiger

Thanks for the question @Ruediger_Brand. While I’ve never tried using Cesium for Unity on the Hololens, and don’t currently have one to test with, I can make some guesses based on this log. “Could not resolve host” indicates an error that happens before the point where an HTTPS connection would be established - it means that the app can’t figure out what IP address the domain name corresponds to. This would usually mean there’s no internet access, or a misconfigured DNS server. However, in the Hololens case, it seems like this might mean you need to declare the internetClient capability in your Hololens app’s package manifest. If this doesn’t work, you can give internetClientServer or privateNetworkClientServer a try instead. I hope this helps!

Hi Ashley,

Thank you internetclient was the Solution

Regards

Rüdiger

1 Like