Spawned Actor RootMotion from everything no work

I created all my animations in animBP using rootmotion. The animBP work fine when I created my actor in editor. While no matter I spawn them by c++ or blueprint, the rootmotion no work. Rootmotion play a very important role in my game.I would very appreciate if anyone could help me. Thank you.

UE4.12 also have this problem

Hi,

What is your Root Motion Mode set to in your Animation Blueprint? If all of your animations use Root Motion, you’ll need to set this to “Root Motion from Everything”. By default, AnimBP’s only accept Root Motion from Montages.

Below it shows the two locations you can modify this. In the panel on the left, you’ll need to make sure you are using “Edit Defaults” (circled in red), not “Edit Preview”

Hi,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

I found the answer, I forgot to set the AI controller to my AI character.