csharp
public sealed class ClipMotionOne clip, played straight: the leaf every blend tree is built out of.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A wrapper and not the clip itself, because a clip is shared content and the things that make it a motion — how fast it plays, whether it is additive, what it is measured against — belong to the place it is used. The same walk cycle appears in a locomotion tree at speed one and in a limp at speed 0.7, and there is one clip.
Fields and properties (4)
public AnimationClip ClipThe clip being played.
public float SpeedHow fast it plays relative to how it was authored.
public bool IsAdditiveWhether it produces a difference rather than a pose.
public ConstraintTrack? ConstraintsThe constraints this use of the clip carries, overriding the clip's own.
Methods (3)
public ClipMotion(AnimationClip clip, float speed = 1, bool additive = false, float additiveReferenceTime = 0)Wraps a clip.
public override float Length(AnimationParameters parameters)public override RootMotionDelta Evaluate(in MotionContext context, Span<BoneTransform> destination)Poses the skeleton, and reports what the root did.
Used by (14)
- MoveSelectionBenchmarksVixen.Benchmarks.Animation
- RigsVixen.Benchmarks.Animation
- AnimatorTestsVixen.Animation.Tests
- AuthoringTestsVixen.Animation.Tests
- BlendTreeTestsVixen.Animation.Tests
- ConstraintStageTestsVixen.Animation.Tests
- ConstraintTestsVixen.Animation.Tests
- EcsIntegrationTestsVixen.Animation.Tests
- LoadPathTestsVixen.Animation.Tests
- MoveSetCacheVixen.Animation
- MoveSetTestsVixen.Animation.Tests
- MoveTransitionTestsVixen.Animation.Tests
- StateMachineTestsVixen.Animation.Tests
- AnimationGraphCompilerVixen.Editor.AnimationGraph