Search Unity

Disable FreeLook Axis Control during a blend from timeline

Discussion in 'Cinemachine' started by YuriyPopov, Nov 26, 2018.

  1. YuriyPopov

    YuriyPopov

    Joined:
    Sep 5, 2017
    Posts:
    237
    I'm using timeline to do cutscenes for my game and I want to blend from a cutscene to gameplay smoothly. Problem is that during the blend the axis control of the Free Look rig moves it and this can make the blend shaky. How can I disable the axis control of the freelook from timeline?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    You need to set the FL axis input name to blank. You could try adding a script to the FL that does this if and only if there is a blend in progress (brain.IsBlending)
     
  3. YuriyPopov

    YuriyPopov

    Joined:
    Sep 5, 2017
    Posts:
    237
    Are there any events I can hook into? I cant seem to find them. Or do I just do it in a Update?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    The brain does emit an CameraActivated event, and each vcam has an activation event.

    upload_2018-11-29_9-28-19.png

    upload_2018-11-29_9-28-42.png