Search Unity

What is Playable.SetLeadTime(float value)?

Discussion in 'Animation' started by ModLunar, Oct 9, 2019.

  1. ModLunar

    ModLunar

    Joined:
    Oct 16, 2016
    Posts:
    374
    I feel like I'm missing something, cause I read the docs on SetLeadTime(...) and don't quite understand what it's used for, or what it does. Can anyone shed some light on it for me?




    (For example, if PrepareData(...) is called on a ScriptPlayable using this, how does this impact the playable's duration, does anything get delayed?

    And what if SetLeadTime(...) is called on something else, like an AnimationScriptPlayable? Does it do anything then?)