Search Unity

Question Timeline with Root motion (using OnAnimatorMove)

Discussion in 'Timeline' started by seoyeon222222, Aug 13, 2021.

  1. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    187
    upload_2021-8-14_6-18-59.png

    Root Motion of my character is controlled by Script (using OnAnimatorMove)

    I hope the same thing happens in editor mode and runtime.
    (Root motion actually moves the character)

    If 'Apply Root Motion' is checked directly by the animator without using OnAnimatorMove, it operates well.
    However, when using OnAnimatorMove to control root motion in script, the character does not move properly.

    There seems to be a similar discussion in the forum, but...
    I couldn't find a clear solution.

    Is there a good solution or approach to solving this problem?
     
  2. merpheus

    merpheus

    Joined:
    Mar 5, 2013
    Posts:
    202
    What happens when you use OnAnimatorMove? Not move at all? Do you have a snippet to share about how you control it from timeline
     
  3. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    187
    Thank you for your interest.
    I just checked the cause of the problem.
    I'm using both rootmotion/inplace motion, and there was a problem controlling it.
    I checked the OnAnimatorMove and can find that problem.

    I wonder why i didn't notice this when i posted a question.
    thanks. :)