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
indexintThe index of the AnimatedTilemapFrame element to locate.
frameAnimatedTilemapFrameWhen 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.