Topic: North South East West

How do I find out the direction of the map?  Is this possible?  When displaying a map to the user, I'd like a compass image to show N/E/S/W indicators in relation to what's visible in the map, not the users device.

Can you help?

Thanks!

Re: North South East West

Hello.

It depends on how you rotate the camera map, and how to draw the compass.
For example, if you rotate the camera using «Allow Camera Control» and have a compass as UI element, you just specify:
compassGO.transform.localRotation = Quaternion.Euler(0, 0, OnlineMapsTileSetControl.instance.cameraRotation.y);
In other cases, you will have a different implementation, but the same logic.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.