Search Unity

TrackAsset UpdateDuration() replacement?

Discussion in 'Timeline' started by Flag74, May 18, 2020.

  1. Flag74

    Flag74

    Joined:
    May 31, 2017
    Posts:
    128
    Hi,
    once I had UpdateDuration() for track assets, no it has been removed.
    How does it work now?
    thx
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    The duration of a track is automatically set based the clips, markers, and animated parameters on the track.
     
  3. Flag74

    Flag74

    Joined:
    May 31, 2017
    Posts:
    128
    Hi, I had some code that runs inside that method.
    Where should I put that now?

    (UpdateDuration() is called whenever the clip si resized or moved)
     
    Last edited: May 19, 2020