class
AnimationBuilder
public sealed class AnimationBuilder Provides ability to generate animations for a Model at runtime. See Single)
Properties
| Name | Type | Description |
|---|---|---|
Name | String | The name of the animation. |
FrameRate | Single | The frames per second of the animation. |
Looping | Boolean | This animation loops. |
Delta | Boolean | This animation "adds" to the base result. |
DisableInterpolation | Boolean | This animation disables interpolation between frames. |
FrameCount | Int32 | The number of frames in the animation. |
Methods
AnimationBuilder WithName(String name) Sets the name of the animation.
AnimationBuilder WithFrameRate(Single frameRate) Sets the frames per second of the animation.
AnimationBuilder WithLooping(Boolean looping = True) Sets whether the animation loops.
AnimationBuilder WithDelta(Boolean delta = True) Sets whether the animation adds to the base result.
AnimationBuilder WithInterpolationDisabled(Boolean disableInterpolation = True) Sets whether interpolation between frames is disabled.
AnimationBuilder AddFrame(Span<Transform> boneTransforms) AnimationBuilder AddFrame(List<Transform> boneTransforms)