Interface IObjectRegistry
public interface IObjectRegistry
Methods
GetReference(Object, bool)
Returns the ObjectReference for the given object.
ObjectReference GetReference(UnityEngine.Object obj, bool create = true)
Parameters
Returns
- ObjectReference
The ObjectReference, or null if create is false and no reference exists
RegisterReplacedObject(Object, Object)
Record that a particular object (asset or scene object) was replaced by a clone or transformed version. This will be used to track the original object in error reports.
ObjectReference RegisterReplacedObject(UnityEngine.Object oldObject, UnityEngine.Object newObject)
Parameters
Returns
- ObjectReference
The ObjectReference for the objects in question
RegisterReplacedObject(ObjectReference, Object)
Record that a particular object (asset or scene object) was replaced by a clone or transformed version. This will be used to track the original object in error reports.
ObjectReference RegisterReplacedObject(ObjectReference oldObject, UnityEngine.Object newObject)
Parameters
oldObject
ObjectReferencenewObject
Object
Returns
- ObjectReference
The ObjectReference for the objects in question