com.onlineobject.objectnet Namespace

NetworkPrefabsDatabase..::..GetPrefab Method (GameObject)

Retrieves a prefab entry by its GameObject.

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

Syntax


public NetworkPrefabEntry GetPrefab(

	GameObject prefab

)

Parameters

prefab
Type: GameObject
The GameObject of the prefab.

Return Value

The corresponding NetworkPrefabEntry, or null if not found.