Search Unity

How to make cimemachine interpolate between two camera controled with 0-1

Discussion in 'Cinemachine' started by xiaofan1228, Dec 21, 2021.

  1. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    Like when in state-driven camera, I want to make the interpolation between A & B controled by a certain parameter between 0-1.
    I know probably it's possible in mixing camera, but I do need the animator to control the camera state.

    Is that possible to do that with cinemachine? Or do I need extra scripts to make it ?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    You can do it with CinemachineMixingCamera. You will need to control the weights of the cameras. You can to that either with animator or with a custom script that drives the camera weights in response to your parameter.
     
  3. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    I find it is possilbe to put the mixing camera under a stata driven camera !

    CM StateDrivenCamera
    -Camera1
    -Camera2
    -MixingCamera
    -Camera3


    That will solve my issue! Thanks very much!
     
    Gregoryl likes this.