s&box docs

public sealed class Sandbox.AnimationBuilder

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

Methods

Showing 7 methods

public Sandbox.AnimationBuilder WithDelta(bool delta = True)

Sets whether the animation adds to the base result.

Parameters

  • delta: Default: True

public Sandbox.AnimationBuilder WithFrameRate(float frameRate)

Sets the frames per second of the animation.

public Sandbox.AnimationBuilder WithInterpolationDisabled(bool disableInterpolation = True)

Sets whether interpolation between frames is disabled.

Parameters

  • disableInterpolation: Default: True

public Sandbox.AnimationBuilder WithLooping(bool looping = True)

Sets whether the animation loops.

Parameters

  • looping: Default: True

public Sandbox.AnimationBuilder WithName(string name)

Sets the name of the animation.

Properties

Showing 6 properties

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

This animation "adds" to the base result.

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

This animation disables interpolation between frames.

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

The number of frames in the animation.

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

The frames per second of the animation.

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

The name of the animation.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.AnimationBuilder

On this page