NetworkGameObject..::..NetworkInstantiate Method (GameObject, Vector3, Quaternion, Vector3)
Instantiates a GameObject over the network and sets its position, rotation, and scale.
Namespace:
com.onlineobject.objectnetAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
public static bool NetworkInstantiate( GameObject prefab, Vector3 position, Quaternion rotation, Vector3 scale )
Parameters
- prefab
- Type: GameObject
The GameObject prefab to instantiate.
- position
- Type: Vector3
The position at which to instantiate the GameObject.
- rotation
- Type: Quaternion
The rotation at which to instantiate the GameObject.
- scale
- Type: Vector3
The scale at which to instantiate the GameObject.