Class SpriteFrame
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
TextureRegion
The rectangle specifying the region of the texture to use for that frame.
public Rectangle TextureRegion
Field Value
Methods
Clone()
Clone the current sprite frame instance.
public SpriteFrame Clone()
Returns
- SpriteFrame
A new instance of the current sprite frame.