Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to tileset locations on ion do not appear in Unity unless Unity is reopened #492

Open
corybarr opened this issue Aug 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@corybarr
Copy link

Steps to reproduce:

  1. Select or create a tileset on ion. (A small model will work best.)
  2. Load it into a Unity scene.
  3. On ion, change the name and tileset location.
  4. Delete the tileset in Unity.
  5. Back in Unity, refresh the asset list via the blue button in the "Cesium ion Assets" panel.
  6. You should see the asset with the updated name. Select "Add to Level"
  7. The asset will be in the original location prior to the ion change.
  8. "Refresh Tileset" on the gameobjects "Cesium 3D Tileset" component doesn't update the location.
  9. Close Unity and reopen the project. The asset's position will be updated. (Note that reloading the scene without restarting Unity has no effect.)
@corybarr corybarr added the bug Something isn't working label Aug 21, 2024
@kring
Copy link
Member

kring commented Aug 22, 2024

This is caused by the endpointCache in CesiumIonTilesetLoader.cpp:
https://github.com/CesiumGS/cesium-native/blob/v0.38.0/Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp#L473

The purpose of this cache is to avoid creating extra ion sessions unnecessarily when, for example, switching between Edit and Play mode. See the original issue here: CesiumGS/cesium-native#382

I'm not sure how we could know to bust this cache in this case, without simply hitting the endpoint service every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants