NetworkPrefabsDatabase..::..RegisterPrefab Method
Registers a new prefab in the database.
Namespace:
com.onlineobject.objectnetAssembly: 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.

