Table of Contents

Method RemoveLayer

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

RemoveLayer(int)

Removes the TilemapLayer element at the specified index in this AnimatedTilemapFrame.

public bool RemoveLayer(int index)

Parameters

index int

The index of the TilemapLayer element to remove from this AnimatedTilemapFrame.

Returns

bool

true if the TilemapLayer element was successfully removed; otherwise, false. This method returns false if the specified index is less than zero or is greater than or equal to the total number of TilemapLayer elements in this tilemap frame.

RemoveLayer(string)

Removes the TilemapLayer element with the specified name from this AnimatedTilemapFrame.

public bool RemoveLayer(string name)

Parameters

name string

The name of the TilemapLayer element to remove from this AnimatedTilemapFrame

Returns

bool

true if the TilemapLayer element was successfully removed; otherwise, false. This method returns false if this tilemap frame does not contain a TilemapLayer element with the specified name.

RemoveLayer(TilemapLayer)

Removes the given TilemapLayer element from this AnimatedTilemapFrame.

public bool RemoveLayer(TilemapLayer layer)

Parameters

layer TilemapLayer

The TilemapLayer element to remove from this AnimatedTilemapFrame.

Returns

bool

true if the TilemapLayer element was removed successfully; otherwise, false. This method returns false if this tilemap frame does not contain the TilemapLayer element given.