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