Search Unity

questions about looping animation

Discussion in 'Animation' started by mickhah, Aug 7, 2014.

  1. mickhah

    mickhah

    Joined:
    Aug 7, 2014
    Posts:
    4
    hello. i'm an absolute noob. i've made an animated character and imported it into unity. then i wanted the walkcycle to be played when i press some button. but i got some problems:
    the walkcycle consists of two parts - 1. the character starts moving from standing position;
    2. the actual walkcycle, which can be looped then.
    in the generic animation type preset there are option for cycle offset. but that generic type doesn't play the animation properly, so i was forced to use legacy type. but in the legacy type there are only "loop on/off" option.
    my question - how can i make the looping walkcycle? i have two ideas:
    1. to make a code for loop cycle offset;
    2. or make two animation tracks - for walk start and for main walking which can be looped, and let the second be played after the first one and that only the second one will be looped.
    but i have no idea how to aquire both of these tasks.
     
  2. mickhah

    mickhah

    Joined:
    Aug 7, 2014
    Posts:
    4
    i managed to do this with ".PlayQueued" thing.