com.onlineobject.objectnet Namespace

NetworkGameObject..::..NetworkInstantiate Method (GameObject, Vector3, Quaternion)

Instantiates a GameObject over the network and sets its position and rotation.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public static bool NetworkInstantiate(

	GameObject prefab,

	Vector3 position,

	Quaternion rotation

)

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.

Return Value

True if the instantiation was successful, false otherwise.