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

RuntimeObjectIndex.AddObject

public GUID AddObject(Object unityObject)

Add an object to the index

Returns: Returns the GUID of the object after it is added

Parameter Description
unityObject Object to be added

public void AddObject(Object unityObject, GUID guid)

Add an object to the index with a specified GUID

Parameter Description
unityObject The object to add
guid The GUID for the object