Method TryGetFrame
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
intThe index of the AnimatedTilemapFrame element to locate.
frame
AnimatedTilemapFrameWhen 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.