Method GetAsset
GetAsset(string)
Find a sprite by its key.
Declaration
public Sprite GetAsset(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to search for. |
Returns
Type | Description |
---|---|
Sprite | Returns a Sprite asset reference. Could return null. Could throw a KeyNotFoundException. |