Each time I open my Cesium for Unity Project, in order to load any tile sets, I have to manually open the token window in the cesium tab and set the project default token. Is this intended behavior or is there something I can do to address this? Would appreciate any help!
Here’s the error message that appears each time I open the project. Upon clicking the button, I am just redirected to my list of ion tokens.
Hi @alec_zhang1 , welcome to the community!
I just confirmed this is a bug in recent versions of Cesium for Unity. I just wrote an issue for it, which has more information and a workaround:
opened 01:08AM - 14 Jun 24 UTC
bug
This has been reported several times on the community forum recently:
* https:/… /community.cesium.com/t/imagery-not-loading-in-cesium-for-unity-in-android/32979/2?u=kevin_ring
* https://community.cesium.com/t/help-with-project-default-tokens/33071
And I just confirmed it myself.
If you edit the token field in the `CesiumSettings/Resources/CesiumIonServers/ion.cesium.com` asset directly using the project tab, Unity silently saves it when you either exit the editor or save the project.
However, if you edit the token using Cesium's "Token" panel, then the token is never saved.
This is major problem that needs to be fixed urgently, but as a workaround you can get the token to save by clicking the folder icon next to the ion server selector to navigate to the asset in the Project tab:
<img width="348" alt="image" src="https://github.com/CesiumGS/cesium-unity/assets/924374/182a0f96-2940-4f47-bfae-7c6cb6da2cee">
Then, with the server asset selected, in the Inspector tab, change any field and then change it back. Now when you exit the Unity Editor or save the project, the new token should be saved.
We’ll get this fixed as soon as possible.
Hi @Kevin_Ring , thanks for the timely response.
Just tried the workaround and it seems to work perfectly!
Thanks a bunch for the help!
1 Like