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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to solve Timeline skip short clip when fps is low

Discussion in 'Timeline' started by bangingdev, Oct 12, 2021.

  1. bangingdev

    bangingdev

    Joined:
    Nov 15, 2020
    Posts:
    12
    My TimelineAsset have some short clip, such as 0.3s, 0.5s
    When fps is low, like 20 - 25, the short clip don't be play (OnBehaviourPlay, OnBehaviourPause don't call)

    Have someone know the solution ?
     
  2. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    236
    What kind of clip are you using ?

    One "trick" is to :
    - cache the start and end time of the clip at its creation
    - from your TrackMixer, you can know the current time of the timeline and compare it with the start/end time of your different clips.
    (I can provide some code samples if that solution could work for you)

    So if the playable head jumped straight over your clip, you can handle this case as you'd like. However, if you haven't implemented a TrackMixer, you might be out-of-luck :\
     
  3. bangingdev

    bangingdev

    Joined:
    Nov 15, 2020
    Posts:
    12
    upload_2021-10-13_15-50-52.png

    I have custom track, VFX Track and Scritp Track
    1. VFX Track will crreate fx on the scene
    2. Script Track will call some code function

    I don't understand your trick, can you provide the code samples ?
    THX
     
  4. Midiphony-panda

    Midiphony-panda

    Joined:
    Feb 10, 2020
    Posts:
    236