Class ProceduralSpriteAnimation

A structure that encompasses a procedural animation which can be transformed into a SpriteImage that can be displayed by UI.

Hierarchy

  • FrameworkObject
    • ProceduralSpriteAnimation

Constructors

  • Parses the JSON object into a ProceduralSpriteAnimation object without reporting parsing errors. If an unskippable error is encountered, an empty object will be returned.

    Parameters

    • jsonObject: JsonObject

      The JSON object to be parsed.

    • OptionalisInternalConstructor: boolean

    Returns ProceduralSpriteAnimation

    The parsed structure, if it succeeded, else an empty pointer if there were unskippable errors.

Methods

  • Creates a sprite image as an asynchronous operation from the stored animations as a sprite sheet that is laid out horizontally, like in a matrix.

    Parameters

    Returns UncertainAsyncOp<SpriteImage, string>

    An async operation, that builds a sprite image pointer, if it succeeded.