Search Unity

Force update of a vcam instantly

Discussion in 'Cinemachine' started by dadude123, Dec 28, 2018.

  1. dadude123

    dadude123

    Joined:
    Feb 26, 2014
    Posts:
    789
    Hi,

    is there a way to instantly update a vcam?

    In the scenario I need this for I can not wait for the automatic update at the end of the frame.
    There are further calculations that depend on the new/updated position and rotation of the camera.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    Try vcam.InternalUpdateCameraState(). That will force an immediate update.
     
  3. Serhii-Horun

    Serhii-Horun

    Joined:
    Apr 12, 2015
    Posts:
    151
    Hi @Gregoryl !
    It updates camera state immediately, but it does not apply state to the camera transform. Any thoughts/solution?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    Answered in your other thread. I suggest using an entirely different approach to the problem.