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