Search Unity

Blend between VCams via script

Discussion in 'Cinemachine' started by goran_okomotive, Jul 24, 2019.

  1. goran_okomotive

    goran_okomotive

    Joined:
    Apr 26, 2017
    Posts:
    60
    Hi there!

    Couldn't find it in the docs and I'm not sure if this is already possible or if I should post a feature request on the Github page.

    Would be lovely if we could blend between VCams via script API.
    This could be helpful if we want to blend between two VCams according to a position between two volumes for example. imagine the player standing within two volume collider: we could get the blend value and interpolate between the two camera positions accordingly to the players movement. Similar to the post processing volume blendings.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Check out CinemachineMixingCamera. That's what it's for.
     
  3. goran_okomotive

    goran_okomotive

    Joined:
    Apr 26, 2017
    Posts:
    60
    Wow, thanks for the fast answer!
    This was exactly what I was looking for.
     
    Gregoryl likes this.