Topic: Update multiple positions on maps
Hello,
I have hundreds of childGameobjects placed on my map.
All of them are parented to a rootGameobject.
The root.position is (0,0,0), the root.localScale is (1,1,1),
and I initialize them with "GetWorldPositionWithElevation", because I know their real longitude/latitude.
When I pan or zoom the map I'd like their positions to be updated, but if I call "GetWorldPositionWithElevation" for each of them on "OnChangeZoom" and "OnChangePosition" events I have a huge performance issue.
I can translate my rootGameobject on the basis of the map translation (OnlineMaps.position), but the translation combined with the map zoom is giving to me a lot of struggles.
Is there a "right" way to update the position of all my gameobjetcs in one go, on the basis of map translation and map zoom, in reference to a root transform?
Many thanks!