Method GetSlice
GetSlice(string)
Returns the Slice element with the specified name from this TextureRegion.
public Slice GetSlice(string name)
Parameters
Returns
Exceptions
- KeyNotFoundException
Thrown if this TextureRegion does not contain a Slice element with the specified name.
GetSlice<T>(string)
Returns the Slice element with the specified name from this TextureRegion as the type specified.
public T GetSlice<T>(string name) where T : Slice
Parameters
Returns
- T
The Slice element located as the type specified.