com.onlineobject.objectnet Namespace

NetworkObjectExtension..::..IsSamePrefab Method (GameObject, String)

Checks if the GameObject is the same prefab as specified by a prefab signature.

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

Syntax


public static bool IsSamePrefab(

	this GameObject gameObject,

	string prefabSignature

)

Parameters

gameObject
Type: GameObject
The GameObject to compare.
prefabSignature
Type: String
The signature of the prefab to compare against.

Return Value

True if the GameObject's prefab signature matches the provided signature, false otherwise.