Search Unity

Bug Timeline adds 1 million to playable.GetDuration() when extrapolation is set to anything but none

Discussion in 'Timeline' started by Meatloaf4, Aug 18, 2022.

  1. Meatloaf4

    Meatloaf4

    Joined:
    Jul 30, 2013
    Posts:
    183
    This is super confusing to me, I'm trying to understand why
    playable.GetDuration()
    is adding 1,000,000 to the duration when clip caps are set to anything but none, but I can't seem to find out if this is a bug (it looks like one) or if this is standard behavior.

    If this is standard behavior, I'm not entirely sure why it was chosen.

    Any insight would be super helpful! Thank you in advance!

    P.S. Here is another post that seems to be experience the same issue.
     

    Attached Files:

  2. Meatloaf4

    Meatloaf4

    Joined:
    Jul 30, 2013
    Posts:
    183
    So some further investigation is showing that it only adds 1 million, when it's the last clip on a timeline track where the post extrapolation is anything but none. I think the reason why it's doing this is because it's post extrapolation beginning time is now technically infinity .