Search Unity

Question How to achieve camera control with Cinemachine Freelook InputProvider using click+drag?

Discussion in 'Cinemachine' started by HeyKatu, Jan 15, 2023.

  1. HeyKatu

    HeyKatu

    Joined:
    Dec 20, 2022
    Posts:
    2
    So I was referencing this thread: https://forum.unity.com/threads/cinemachine-freelook-mouse-down.835603/

    And following the advice to use the InputProvider so I can use the new Input system. I'd like to bind camera control to right stick on controller, and right click + drag on mouse.

    In my Actions map, I have the action "Camera" set to Action type "Value" and Control type "Any." I have one binding for Right Stick, and a second Binding With One Modifier, where the Modifier is "Right (Mouse)" and the Binding set to "Delta (Mouse)." I also have that set to the Hold Interaction.

    I then set the "XY Axis" on the Cinemachine Input Provider to be my "Camera" action. In game, nothing happens. What am I doing wrong? Thanks for your time.
     
  2. HeyKatu

    HeyKatu

    Joined:
    Dec 20, 2022
    Posts:
    2
    Well, this morning it is working correctly. I guess I just needed to restart my client/pc.