I was following the thread here: viewtopic.php?t=1364
and was trying to get the SkeletonRootMotion to work with Mecanim(using the SkeletonAnimator instead of SkeletonAnimation class). However, SkeletonAnimator doesn't track state, so I am unsure how to proceed. Has anyone done this before? Or perhaps Mitch could give some advice on how to move forward. Thanks.
//this is found in SkeletonRootMotion.cs
void ApplyRootMotion(SkeletonAnimator skelAnim)//changed to take animator
{
if (rootMotionCurve == null || rootMotionCurveY == null)
return;
TrackEntry t = skelAnim.state.GetCurrent(0); //ISSUE HERE. the animator doesn't have a state.
Really I just need the rootPosition of the mecanim animator to update based on what animations are playing using the SkeletonAnimator controller. Thanks.