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