Search Unity

Resolved Cinemachine Trigger Action script - Priority Boost does nothing on other vcams

Discussion in 'Cinemachine' started by MlleBun, Aug 2, 2020.

  1. MlleBun

    MlleBun

    Joined:
    Sep 19, 2017
    Posts:
    163
    Hi,

    I wanted to report that Priority Boost in the Cinemachine Trigger Action script does nothing on other vcams. Assuming the current priority of the other cams is 10.

    Being an "incremental" behaviour, I tried to put a +5 / -5 boost, it seems to work on the first game cam, but does nothing on all other cams.
    upload_2020-8-2_10-41-28.png

    I only assume this is a bug?
     

    Attached Files:

    Last edited: Aug 2, 2020
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,721
    It works for me with +5 / -5 boost. You can try putting a breakpoint in the CinemachineTriggerAction.OnTriggerEnter to see what's going on. A common error is forgetting to put a RigidBody on the thing entering the trigger zone.
     
    MlleBun likes this.
  3. MlleBun

    MlleBun

    Joined:
    Sep 19, 2017
    Posts:
    163
    The rigid body yes !!! I'm working too much, I think I need a break ;)
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,721
    haha me too - I fell into the same hole and it took me a while to climb out
     
    MlleBun likes this.