@Vein Glad to hear you've figured it out. Please note that the SkeletonMecanim
component Inspector automatically detects whether Apply Root Motion
is enabled at the Animator
component and then adds a SkeletonMecanimRootMotion
component to the GameObject.
I'm not quite sure how you managed to have Apply Root Motion
enabled but the SkeletonMecanimRootMotion
not automatically re-added even if deleted, but I guess it must have been a combination of unsaved scene or prefab state and not selecting the GameObject or something like that.
If you can share reproduction steps how you can enable Apply Root Motion
but not have a SkeletonMecanimRootMotion
added, please do let us know, we would be happy to fix this. If the GameObject is not selected it won't be possible however, as it's the SkeletonMecanim
Inspector code which evaluates the situation.
Vein Previously it worked without that component
It didn't work without the component, you might just not have noticed that it was automatically added.