Table of Contents

Interface IObjectRegistry

Namespace
nadena.dev.ndmf
public interface IObjectRegistry

Methods

GetReference(Object, bool)

Returns the ObjectReference for the given object.

ObjectReference GetReference(UnityEngine.Object obj, bool create = true)

Parameters

obj Object
create bool

If true, an ObjectReference will be created if one does not already exist

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

oldObject Object
newObject Object

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 ObjectReference
newObject Object

Returns

ObjectReference

The ObjectReference for the objects in question