Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Cinemachine won't blend to vcam with less priority

Discussion in 'Cinemachine' started by shi_no_gekai, Jan 24, 2021.

  1. shi_no_gekai

    shi_no_gekai

    Joined:
    Mar 3, 2018
    Posts:
    14
    Hey,
    I'm using cinemachine with 3 vcams: start, main and lookLeft and state driven camera to blend. I attached an animator to the state driven machine, and set up the different states. I'm using this script to play each animation to blend to the wanted vcam, however 'main' v cam is always selected, while 'start' vcam has less priority.

    upload_2021-1-24_15-40-49.png

    just a simple animator.Play

    upload_2021-1-24_15-42-0.png

    my animator
    upload_2021-1-24_15-42-44.png
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    It's not enough to just add the vcams as children. You must also assign a vcam to each animation state:

    upload_2021-1-25_10-19-21.png
     
    shi_no_gekai likes this.
  3. shi_no_gekai

    shi_no_gekai

    Joined:
    Mar 3, 2018
    Posts:
    14
    Thanks alot for the quick reply! it finally worked :)