Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Disable freelook mouse movement during transitions

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

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    583
    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:
    3,839
    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.
     
unityunity