Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help with cinemachine and input system

Discussion in 'Cinemachine' started by chalasanihemanth25, Jun 28, 2022.

  1. chalasanihemanth25

    chalasanihemanth25

    Joined:
    Apr 15, 2021
    Posts:
    3
    Hi,
    I am developing a third person parkour game with new input system and cinemachine. You can move with the right joystick and look around using right joystick(Cinemachine Input provider). For doing tricks I am using button with one modifier, you press R2 and move the right joystick in different directions for different tricks. But when I move the right joystick for a trick cinemachine rotates the camera.

    Is a way to stop cinemachine to rotate the camera when other buttons are pressed.

    Thank you in advance.

    Hemanth
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Hi
    You could disable Cinemachine Input provider on your vcam when you press the modifier, and enable on release.
     
  3. chalasanihemanth25

    chalasanihemanth25

    Joined:
    Apr 15, 2021
    Posts:
    3
    I tried it but Cimemachine still rotates the camera.
     
  4. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    What version of Cinemachine?
    In version 2.6.15 or 2.8.6, it should work. We had a bug in previous versions, where we were not tracking the enabled state correctly.