Method InstantiatePrefab
InstantiatePrefab(String, Vector3, Quaternion)
This is to instantiate a new gameobject from a prefab which is in the scenario prefabs PREFAB
Declaration
public GameObject InstantiatePrefab(string agentName, Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | agentName | |
Vector3 | position | |
Quaternion | rotation |
Returns
Type | Description |
---|---|
GameObject |