Table of Contents

Method TryGetFrame

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

TryGetFrame(int, out AnimatedTilemapFrame?)

Gets the AnimatedTilemapFrame element at the specified index in this AnimatedTilemap.

public bool TryGetFrame(int index, out AnimatedTilemapFrame? frame)

Parameters

index int

The index of the AnimatedTilemapFrame element to locate.

frame AnimatedTilemapFrame

When this method returns true, contains the AnimatedTilemapFrame located; otherwise, null.

Returns

bool

true if the AnimatedTilemapFrame element was located; otherwise, false. This method returns false when the specified index is less than zero or is greater than or equal to the total number of AnimatedTilemapFrame elements in this AnimatedTilemap.