API ReferenceSandbox
AnimationBuilderclass
Provides ability to generate animations for a `Sandbox.Model` at runtime. See `Sandbox.ModelBuilder.AddAnimation(System.String,System.Single)`
object→AnimationBuilder
Methods7
Showing 7 methods
public Sandbox.AnimationBuilder WithDelta(bool delta = True)
Sets whether the animation adds to the base result.
| Parameter | Type | Description |
|---|---|---|
| delta = True | bool | — |
public Sandbox.AnimationBuilder WithFrameRate(float frameRate)
Sets the frames per second of the animation.
| Parameter | Type | Description |
|---|---|---|
| frameRate | float | — |
public Sandbox.AnimationBuilder WithInterpolationDisabled(bool disableInterpolation = True)
Sets whether interpolation between frames is disabled.
| Parameter | Type | Description |
|---|---|---|
| disableInterpolation = True | bool | — |
public Sandbox.AnimationBuilder WithLooping(bool looping = True)
Sets whether the animation loops.
| Parameter | Type | Description |
|---|---|---|
| looping = True | bool | — |
public Sandbox.AnimationBuilder WithName(string name)
Sets the name of the animation.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
No results match this filter.
Properties6
Showing 6 properties
public bool Sandbox.AnimationBuilder.Delta { get; set; }
This animation "adds" to the base result.
Returns:
bool—public bool Sandbox.AnimationBuilder.DisableInterpolation { get; set; }
This animation disables interpolation between frames.
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; }
This animation loops.
Returns:
bool—public string Sandbox.AnimationBuilder.Name { get; set; }
The name of the animation.
Returns:
string—No results match this filter.