Method RemoveRegion
RemoveRegion(int)
Removes the TextureRegion element at the specified index from this TextureAtlas.
public bool RemoveRegion(int index)
Parameters
index
intThe index of the TextureRegion element to remove.
Returns
- bool
true if the TextureRegion 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 TextureRegion element in this TextureAtlas.
RemoveRegion(string)
Removes the TextureRegion element with the specified name from this TextureAtlas.
public bool RemoveRegion(string name)
Parameters
name
stringThe name of the TextureRegion element to remove.
Returns
- bool
true if the TextureRegion element was successfully removed; otherwise, false. This method returns false if thisTextureAtlas does not contain a TextureRegion element with the specified name.