Method GetAsset
GetAsset<T>(string)
Load an asset that is stored in a resources folder.
Declaration
public T GetAsset<T>(string assetName) where T : Object
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetName | The name to search for. |
Returns
| Type | Description |
|---|---|
| T | Returns an asset reference that is stored in a resources folder. Could return null. |
Type Parameters
| Name | Description |
|---|---|
| T |