Property this
this[string]
A square bracket operator to find an AudioClip by name string, similar to how you would find a value by key in a Dictionary.
Declaration
public AudioClip this[string assetName] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetName | The AudioClip we are searching for |
Property Value
| Type | Description |
|---|---|
| AudioClip | Returns an AudioClip if one is found with that name. Could return null. Could throw a KeyNotFoundException. |