SpriteFrame Class
Namespace: Stride.GraphicsAssembly: 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.
System.Object →
SpriteFrame
Derived from SpriteFrame:
[DataContract]
public class SpriteFrame
| Name | Description | |
|---|---|---|
| Fields | ||
| CenterBias | The bias to the frame center in pixels. |
|
| TextureRegion | The rectangle specifying the region of the texture to use for that frame. |
|
| Methods | ||
| Clone() | Clone the current sprite frame instance. |
|
Fields
CenterBias
The bias to the frame center in pixels.
public Vector2 CenterBias
Field Value
| Type | Description |
|---|---|
| Vector2 |
TextureRegion
The rectangle specifying the region of the texture to use for that frame.
public Rectangle TextureRegion
Field Value
| Type | Description |
|---|---|
| Rectangle |
Methods
Clone()
Clone the current sprite frame instance.
public SpriteFrame Clone()
Returns
| Type | Description |
|---|---|
| SpriteFrame | A new instance of the current sprite frame. |