Search Unity

Disable freelook mouse movement during transitions

Discussion in 'Cinemachine' started by mrCharli3, Aug 11, 2019.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    976
    Is it possible to disable movement of the freelookcamera (moving mouse moves camera around player) during the transition to another camera? causing some pretty annoying effects during transitions.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Whenever it needs user input, Cinemachine calls CinemachineCore.GetInputAxis(name). You can override that to normally call Input.GetInputAxis(name), but under certain circumstances (e.g. when the brain is doing the problematic blend), just return 0.