I am struggling to understand how to distinguish between a Cesium3DTileFeature and an Entity that I have created while picking.
In this Sandbox I have added an entity and an OSM tileset.
This is the part of the code where I check for what I am picking
if (pickedObject instanceof Cesium.Cesium3DTileFeature) {
console.log("You picked a Cesium3DTileFeature");
} else if (pickedObject.primitive) {
console.log("You picked an entity");
}
and it based on this answer and this example from the API docs.
Can you please help me understand what I am doing wrong?