Search Unity

is there way to know if virtual camera end its motion?

Discussion in 'Cinemachine' started by halevi, Mar 20, 2022.

  1. halevi

    halevi

    Joined:
    Dec 13, 2020
    Posts:
    35
    i use damping and other twinings properties in my virtual camera and i need indication if my vcam end its damping/motion and reach its target, is there flag or somthing to indicate this? , to be clear i dont want to know if im currently blending between two vcams couse for this i can check isblending property .thanks in advance
     
    Last edited: Mar 20, 2022
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    There is no such event built-in. You'll have to write a script that polls the distance.
     
    halevi likes this.
  3. halevi

    halevi

    Joined:
    Dec 13, 2020
    Posts:
    35
    ok thanks, i think it would be very useful and convenient if there would be such a built-in event/flag in cinemachin , like iscomplete flag/oncomplete callback in dotween plugin.