com.onlineobject.objectnet Namespace

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

Checks if the GameObject is the same prefab as another GameObject by comparing their network components.

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

Syntax


public static bool IsSamePrefab(

	this GameObject gameObject,

	GameObject prefab

)

Parameters

gameObject
Type: GameObject
The GameObject to compare.
prefab
Type: GameObject
The other GameObject to compare against.

Return Value

True if both GameObjects are the same prefab, false otherwise.