Table of Contents

Class SpriteFrame

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

A sprite frame represents a single frame a sprite animation. It contains the region of the texture representing the frame and the time it is supposed to be displayed.

[DataContract]
public class SpriteFrame
Inheritance
SpriteFrame

Fields

CenterBias

The bias to the frame center in pixels.

public Vector2 CenterBias

Field Value

Vector2

TextureRegion

The rectangle specifying the region of the texture to use for that frame.

public Rectangle TextureRegion

Field Value

Rectangle

Methods

Clone()

Clone the current sprite frame instance.

public SpriteFrame Clone()

Returns

SpriteFrame

A new instance of the current sprite frame.