public class Sandbox.Sprite.Animation
Contains one or multiple frames that can be played in sequence.
Related Guides
Broader workflow and conceptual references connected to this API.
When creating your own Classes/Structs/Assets/ect, you'll sometimes want custom editors that pair with them. For example, a Gradient Editor so you can visually see what the Gradient looks like instead of editing the Gradient as if it were a Struct with a list of Colours.
Properties of the decal can be animated over the lifetime of it. These work exactly the same way as in the ParticleEffect component.
With the BeamEffect you have basically got a LineRenderer that can be animated. You can have it make multiple beams, fade them out over time, scale over time and scroll and scale the texture over time.
This section needs to be rewritten with an explanation of all the code, libraries, etc.
When creating a component there are a number of methods you can override and implement.
Facepunch provides some ready-to-use first-person weapons for you!
Constructors
Showing 1 constructors
public Animation()
No results match this filter.
Properties
Showing 6 properties
public float Sandbox.Sprite.Animation.FrameRate { get; set; }
The speed of the animation in frames per second.
public System.Collections.Generic.List`1<Sandbox.Sprite.Frame> Sandbox.Sprite.Animation.Frames { get; set; }
A list of frames that make up the animation. Each frame is a texture that will be displayed in sequence.
public Sandbox.Sprite.LoopMode Sandbox.Sprite.Animation.LoopMode { get; set; }
The loop mode of the animation. This determines what should happen when the animation reaches the final frame in playback.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Sprite.Animation |