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