AnimationBuilderclass

Provides ability to generate animations for a `Sandbox.Model` at runtime. See `Sandbox.ModelBuilder.AddAnimation(System.String,System.Single)`

objectAnimationBuilder
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.AnimationBuilder

Methods7

Showing 7 methods

public Sandbox.AnimationBuilder WithDelta(bool delta = True)PUBLIC

Sets whether the animation adds to the base result.

ParameterTypeDescription
delta = Truebool
Returns:AnimationBuilder

public Sandbox.AnimationBuilder WithFrameRate(float frameRate)PUBLIC

Sets the frames per second of the animation.

ParameterTypeDescription
frameRatefloat
Returns:AnimationBuilder

public Sandbox.AnimationBuilder WithInterpolationDisabled(bool disableInterpolation = True)PUBLIC

Sets whether interpolation between frames is disabled.

ParameterTypeDescription
disableInterpolation = Truebool
Returns:AnimationBuilder

public Sandbox.AnimationBuilder WithLooping(bool looping = True)PUBLIC

Sets whether the animation loops.

ParameterTypeDescription
looping = Truebool
Returns:AnimationBuilder

Properties6

Showing 6 properties

public bool Sandbox.AnimationBuilder.Delta { get; set; }PUBLICGETSET

This animation "adds" to the base result.

Returns:bool

public bool Sandbox.AnimationBuilder.DisableInterpolation { get; set; }PUBLICGETSET

This animation disables interpolation between frames.

Returns:bool

public int Sandbox.AnimationBuilder.FrameCount { get; set; }PUBLICGETSET

The number of frames in the animation.

Returns:int

public float Sandbox.AnimationBuilder.FrameRate { get; set; }PUBLICGETSET

The frames per second of the animation.

Returns:float

public bool Sandbox.AnimationBuilder.Looping { get; set; }PUBLICGETSET

This animation loops.

Returns:bool

public string Sandbox.AnimationBuilder.Name { get; set; }PUBLICGETSET

The name of the animation.

Returns:string

On this page