Click on a specific tile (via position or id)

I’m using Google Photo Realistic 3D Tileset (Cesium Partners with Google Maps Platform to Render Its New Photorealistic 3D Tiles – Cesium) and I want to simulate a click on a specific building, for example this one:

How can I detect a specific click on this 3D Tile? I know I can use const pickedObject = viewer.scene.pick(clickEvent.position); but it is not giving me any valuable information; for example a unique tile ID I can use to detect this building. The tile changes on every render, making it impossible to track by ID. Maybe I can track it by position in the world? if so, how?

For now I am using a polygon solution (creating polygon entity), but it is a bit messy and is not as accurate.

1 Like