Search Unity

Cycle offset does not appear to work when using a blend tree (FIXED)

Discussion in 'Animation' started by Tyrathect, Jan 14, 2017.

  1. Tyrathect

    Tyrathect

    Joined:
    Jul 10, 2012
    Posts:
    38
    I have two animations, a walk and a run, and I have a blend tree that blends from the walk to the run based on a float parameter.

    the walk starts on the left foot while the run starts on the right foot. I tried to fix this in unity by changing the cycle offset on the run so that the run loop starts on the left foot. I tried setting the cycle offset to 50 (for 50%) and also to 30 (the frame number).

    No value I put in cycle offset changes the result. The blend tree seems to ignore the offset.

    Am I missing something here?

    ANSWER: the value for cycle offset is in the range 0..1. So in my case, the correct value is 0.5. It would be nice if somewhere in the documentation it mentioned the range, or if unity gave you some indication that the value you entered isn't valid.
     
    MichaelJT likes this.
  2. MichaelJT

    MichaelJT

    Joined:
    Jan 28, 2015
    Posts:
    14
    Having this exact problem.

    I thought the Cycle Offset was in frames too.

    Thanks.