How to use CinemachineFreeLook camera pinch to zoom in moblie?

Hello
I’m having a hard time zooming out with two fingers of the Cine Machine camera on the quarter view screen while making the Mobile RPG game. It would be really helpful if you could provide us with some data or examples to refer to. Thank you.

1 Like

Hi,

If you are having trouble setting up touch input, then have a look at this forum thread:

If you have the input system set up, but having trouble controlling the zoom of the camera, then:

  • Could you send a pictures of your vcams with which you’d like to zoom? or
  • The names of these vcam’s Body and Aim components?

I’ve been working on this issue and have gotten to the point of copying and rewriting the Cinemachine Input Provider to differentiate the X from the Y axis. (Note I have mouse input actions here because I can’t use touch controls in the editor)

Now I need to get the pinch zoom functionality added using the new Input System if possible and then pass that functionality through this script to the cinemachine freelook cam

Following up, I’m now able to turn on and off the Y Axis in my script with a bool and using the new InputSystem events :slight_smile:
7789683--983580--upload_2022-1-7_14-25-6.png

The ZoomConditionActionReference is another InputActionReference. On mouse/keyboard it is set as the spacebar. On mobile it will be listening for the second finger to be touched down