com.onlineobject.objectnet Namespace

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

Instantiates a GameObject over the network and sets its position.

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

Syntax


public static bool NetworkInstantiate(

	GameObject prefab,

	Vector3 position

)

Parameters

prefab
Type: GameObject
The GameObject prefab to instantiate.
position
Type: Vector3
The position at which to instantiate the GameObject.

Return Value

True if the instantiation was successful, false otherwise.