Topic: The problem with OnlineMapsCameraOrbit.rotation

We all know OnlineMapsCameraOrbit.Rotation is to be able to get the camera Angle.
But I now need to don't activate OnlineMapsCameraOrbit, Input MainCamera transform.rotation to get OnlineMapsCameraOrbit.Rotation.

What will I do?



(If someone on your team can speak Chinese, you can better understand what I mean.)


我们都知道 OnlineMapsCameraOrbit.rotation是能获取摄像机的角度。
但是,我现在需要不激活 OnlineMapsCameraOrbit,而输入MainCamera的transform.rotation来获取OnlineMapsCameraOrbit.rotation

Re: The problem with OnlineMapsCameraOrbit.rotation

Hey, I've changed mousebutton (1) to (2) in my code to get what I want
But if you open the OnlineMapsCameraOrbit script, you won't be able to use the pan and zoom I wrote myself. I need to use only OnlineMapsCameraOrbit for rotation, pan and zoom which I wrote myself

Re: The problem with OnlineMapsCameraOrbit.rotation

Hello.

See OnlineMapsEasyTouchConnector, OnlineMapsFingersTouchGesturesConnector or OnlineMapsTouchScriptConnector scripts to understand how to override the behaviour of OnlineMapsCameraOrbit script.

How to convert main camera rotation to Camera Orbit rotation:

Vector3 angles = Camera.main.transform.localRotation.eulerAngles;
OnlineMapsCameraOrbit.instance.rotation = new Vector2(90 - angles.x, angles.y - 180);
Kind Regards,
Infinity Code Team.

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