Hey there!
I have to display AND MOVE many geo-entities. The important thing is to move. Each has an ArcGicLocation component and currently I change the position over it by creating a new ArcGisPoint and transferring it to the location. But ArcGisPoint is a class... you can only change it by creating a new one... that makes it difficult.
This means I have to create and assign new instances EVERY frame, which creates an incredible amount of garbage. So isn't there a way to move geo-entities without creating an ArcGisPoint? By simply changing the values there? Or can I directly use the HP-Transform to move geo-entities to their geo-position?
I want to move my geo-entities to a specific Web Mercator point (in meters, 3857).
Anyone having a clue how that works? Glad for any help!
The gameobject containing arcgislocation doesn't have to be the gameobject that is visible to your user. you can still have a child gameobject that you move by calculating the offset (from the parent's arcgislocation coordinate).
Thanks! How would that Work tho? Is there No way to e.g. convert a lat/lon or metrics Meters value to a Unity GameObject Position/Transform? Without using those dann ArcgisLocation Components at all?
I don't have access to my computer at the moment but look in the documentation. There are some helper functions that Esri provides that will convert between scene coordinates and geo coordinates.
Hmm... unfortunately I can not find any util classes or methods to do that. All I find require an ArcGisPoint which is a class ( for some reason instead of a structure) and is expensive to use. What are we missing? Is there even a way without using such an ArcgisPoint?
Any of the devs or contributors here? Is there a way? And if not, what else to do when we need to move a lot of objects every frame? And more importantly, why is ArcGisPoint no struct?!