Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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,331
    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.