Summary
A component which takes the root motion from an
UnityEngine.Animator
and applies it to a
UnityEngine.Transform
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- MonoBehaviour
- RedirectRootMotion
- RedirectRootMotion
<Transform>
graph BT
Type-->Base0["RedirectRootMotion<Transform>"]
Base0-->Base1["RedirectRootMotion"]
click Base1 "/animancer/api/Animancer/RedirectRootMotion"
Base1-->Base2["MonoBehaviour"]
Type["RedirectRootMotionToTransform"]
class Type type-node
Syntax
[AddComponentMenu("Animancer/Redirect Root Motion To Transform")]
[HelpURL("https://kybernetik.com.au/animancer/api/Animancer/" + nameof(RedirectRootMotionToTransform))]
public class RedirectRootMotionToTransform : RedirectRootMotion<Transform>
Remarks
Documentation:
Redirecting Root Motion
Attributes
Type | Description |
---|---|
AddComponentMenu | |
HelpURLAttribute |
Properties
Name | Value | Summary |
---|---|---|
Animator | Animator |
The
UnityEngine.Animator which provides the root motion.Inherited from RedirectRootMotion
|
Position | Vector3 |
The current position of the target.
|
Rotation | Quaternion |
The current rotation of the target.
|
Methods
Name | Value | Summary |
---|---|---|
OnAnimatorMove |
void |
Applies the root motion from the
Animancer.RedirectRootMotion.Animator to the Target .Inherited from RedirectRootMotion
|