Method InstantiateSceneObject
InstantiateSceneObject(String, Vector3, Quaternion)
This is special code for where we have the GameObject in the scene and we are setting the gameobject active SCENE.
Declaration
public GameObject InstantiateSceneObject(string agentName, Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | agentName | |
Vector3 | position | |
Quaternion | rotation |
Returns
Type | Description |
---|---|
GameObject | the newly created object that is based on another object that is currently in the scene |