Search Unity

Callback every frame in timeline preview mode

Discussion in 'Timeline' started by B2F, Dec 21, 2019.

  1. B2F

    B2F

    Joined:
    Jul 10, 2013
    Posts:
    23
    There there any way to get a similar function to the Update() function in play mode but in timeline preview mode?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Not really. You can use [ExecuteInEditMode] to get the Update method in edit mode (or EditorApplication.update), along with checking TimelineEditor.inspectedDirector to see if there is a timeline current selected.