Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SpriteFrame Class

    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.

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    Clone()

    Clone the current sprite frame instance.

    public SpriteFrame Clone()
    Returns
    Type Description
    SpriteFrame

    A new instance of the current sprite frame.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation