Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ObjectIndex.Contains

public bool Contains(GUID id)

Check if the index contains an object with the provided ID

Returns: Returns true if an object exists

Parameter Description
id GUID of the object

public bool Contains(Object unityObject)

Check if the index contains an object

Returns: Returns true if the object is indexed

Parameter Description
unityObject Object to search for