Class XRReferenceObjectEntry
A provider-specific reference object.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public abstract class XRReferenceObjectEntry : ScriptableObject
Remarks
A reference object represents a 3D scan of a real object that can be recognized in the environment. Each XRReferenceObject contains a list of provider-specific XRReferenceObjectEntry. Each provider (implementation of XRObjectTrackingSubsystem) should derive a new type from this type.
Each XRReferenceObjectEntry is generally an asset on disk in a format specific to that provider.
Methods
OnAddToLibrary(XRReferenceObjectLibrary, XRReferenceObject)
Invoked when an XRReferenceObject is added to an XRReferenceObjectLibrary.
Declaration
protected virtual void OnAddToLibrary(XRReferenceObjectLibrary library, XRReferenceObject referenceObject)
Parameters
Type | Name | Description |
---|---|---|
XRReferenceObjectLibrary | library | The library to which |
XRReferenceObject | referenceObject | The reference object being added to |
Remarks
Override this method if your XRReferenceObjectEntry needs to perform logic when a novel XRReferenceObject is added to an XRReferenceObjectLibrary.
The default implementation takes no action and has no effect.