Method TryGetSlice
TryGetSlice(string, out Slice?)
Returns the Slice element with the specified name from this Texture
Parameters
name
stringThe name of the Slice element to locate.
slice
SliceWhen this method returns true, contains the Slice located; otherwise, null
Returns
- bool
true if the Slice was located; otherwise, false. This method returns false if this Texture
Region does not contain a Slice element with the specified name.
TryGetSlice<T>(string, out T?)
Returns the Slice element with the specified name from this Texture
Parameters
name
stringThe name of the Slice element to locate.
slice
TWhen this method returns true, contains the Slice located; otherwise, null
Returns
- bool
true if the Slice was located; otherwise, false. This method returns false if this Texture
Region does not contain a Slice element with the specified name.