com.onlineobject.objectnet Namespace

NetworkPrefabsDatabase..::..RegisterPrefab Method

Registers a new prefab in the database.

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

Syntax


public NetworkPrefabEntry RegisterPrefab(

	int networkId,

	GameObject prefab

)

Parameters

networkId
Type: Int32
The network ID for the new prefab.
prefab
Type: GameObject
The GameObject of the new prefab.

Return Value

The newly created or existing NetworkPrefabEntry.