Topic: How to rotate marker instead of the map?

Hi!

I cant rotate my marker instead of the map. I've use the codes in the sample script RotateMapInsteadMarkerExample.cs with my personal code

Re: How to rotate marker instead of the map?

Hello.

Please explain more detail why you can not rotate the marker.

Kind Regards,
Infinity Code Team.

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

3 (edited by ogli223 2016-08-03 02:18:27)

Re: How to rotate marker instead of the map?

In the script attached I've added some of your codes from SmoothMoveExample.cs and RotateMapInsteadMarkerExample.cs and RoteteCameraByGPSExample.cs. So the codes from SmoothMoveExample.cs and RoteteCameraByGPSExample.cs works well but I'm Having problems with the codes from RotateMapInsteadMarkerExample.cs because whenever i change my compass values the marker doesn't rotate

Post's attachments

Attachment icon SmoothMove.cs 3.27 kb, 325 downloads since 2016-08-03 

Re: How to rotate marker instead of the map?

In your script you do not rotate the marker.

It should be something like:

private void OnCompassChanged(float f)
{
    marker.rotation = f;
    OnlineMapsTileSetControl.instance.cameraRotation.y = f * 360;
}
Kind Regards,
Infinity Code Team.

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