API ReferenceSandbox
AnimationBuilderclass
Builds an animation for a `Sandbox.Model`.
object→AnimationBuilder
Methods7
Showing 7 methods
public Sandbox.AnimationBuilder WithDelta(bool delta = True)
Sets whether the animation is applied additively on top of the base pose.
| Parameter | Type | Description |
|---|---|---|
| delta = True | bool | Whether the animation should be additive. |
public Sandbox.AnimationBuilder WithFrameRate(float frameRate)
Sets the frames per second of the animation.
| Parameter | Type | Description |
|---|---|---|
| frameRate | float | The playback frame rate. |
public Sandbox.AnimationBuilder WithInterpolationDisabled(bool disableInterpolation = True)
Sets whether interpolation between frames is disabled.
| Parameter | Type | Description |
|---|---|---|
| disableInterpolation = True | bool | Whether frame interpolation should be disabled. |
public Sandbox.AnimationBuilder WithLooping(bool looping = True)
Sets whether the animation loops.
| Parameter | Type | Description |
|---|---|---|
| looping = True | bool | Whether the animation should loop. |
public Sandbox.AnimationBuilder WithName(string name)
Sets the name of the animation.
| Parameter | Type | Description |
|---|---|---|
| name | string | The animation name. |
No results match this filter.
Properties6
Showing 6 properties
public bool Sandbox.AnimationBuilder.Delta { get; set; }
Whether the animation is applied additively on top of the base pose.
Returns:
bool—public bool Sandbox.AnimationBuilder.DisableInterpolation { get; set; }
Whether interpolation between frames is disabled.
Returns:
bool—public int Sandbox.AnimationBuilder.FrameCount { get; set; }
The number of frames in the animation.
Returns:
int—public float Sandbox.AnimationBuilder.FrameRate { get; set; }
The frames per second of the animation.
Returns:
float—public bool Sandbox.AnimationBuilder.Looping { get; set; }
Whether the animation loops.
Returns:
bool—public string Sandbox.AnimationBuilder.Name { get; set; }
The name of the animation.
Returns:
string—No results match this filter.