com.onlineobject.objectnet Namespace

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

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

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

Syntax


public static bool NetworkInstantiate(

	GameObject prefab,

	Vector3 position,

	Quaternion rotation,

	Vector3 scale,

	out GameObject newInstance

)

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.
newInstance
Type: GameObject%
The instantiated GameObject.

Return Value

True if the instantiation was successful, false otherwise.