I’m trying to run GetObjectsOfType and it’s returning 0 objects even though i see all the .b3dm files and there corresponding game objects with mesh filter components in the heirarchy. Is there some sort of limitation with Unity or Cesium for retrieving MeshFilters that are created at run time? When I add a primitive object to my scene and run the same script it returns that mesh filter so I don’t believe its my script.
All of the game objects streamed by a tileset are marked with
HideFlags.HideAndDontSave. According to the documentation,
FindObjectsOfType does not return objects with
HideFlags.DontSave set. Supposedly, you can use
Resources.FindObjectsOfTypeAll to avoid this limitation.