Search Unity

How to reference an Animator in the Timeline Animation Track using script??

Discussion in 'Timeline' started by Meepo0, Sep 19, 2019.

  1. Meepo0

    Meepo0

    Joined:
    Nov 24, 2017
    Posts:
    31
    So I know there is a function timeline.SetGenericBinding() which does that but I don't know what a key and value to put as parameters, Help Please!!

    Thanks in Advance!!

    upload_2019-9-19_9-8-33.png
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    The first parameter is the track. The second is the animator. The track can be obtained from TimelineAsset.GetOutputTracks().
     
    JCYCrazy and Meepo0 like this.
  3. Meepo0

    Meepo0

    Joined:
    Nov 24, 2017
    Posts:
    31
    Thank You Very Much It Worked!!!

    the only problem i got now is my protagonist has a scale of (0.8,0.8,1) and when the timeline starts it automatically sets him to (1,1,1) is there something that i am doing wrong?
     
    JCYCrazy likes this.
  4. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Do your clips animate scale? I can't think of any other reason why that would happen.