Struct XRReferenceObject
Represents a 3D scan of a real object that can be recognized in the environment.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
[Serializable]
public struct XRReferenceObject : IEquatable<XRReferenceObject>
Remarks
Reference objects contain a list of provider-specific entries. Each entry must have previously been generated in a format specific to its implementation of the XRObjectTrackingSubsystem.
Constructors
Name | Description |
---|---|
XRReferenceObject(string) | Creates a new reference object. This is most commonly used to construct a new reference object at runtime. See Add(XRReferenceObject) |
Properties
Name | Description |
---|---|
guid | A |
name | A string name for this reference object. |
Methods
Name | Description |
---|---|
AddEntry(XRReferenceObjectEntry) | Adds a provider-specific entry to this reference object. |
Equals(object) | Tests for equality. |
Equals(XRReferenceObject) | Tests for equality. |
FindEntry(Type) | Finds an XRReferenceObjectEntry by type. |
FindEntry<T>() | Finds an XRReferenceObjectEntry by type. |
GetHashCode() | Generates a hash suitable for use with containers like |
Operators
Name | Description |
---|---|
operator ==(XRReferenceObject, XRReferenceObject) | Tests for equality. Same as Equals(XRReferenceObject). |
operator !=(XRReferenceObject, XRReferenceObject) | Tests for inequality. Same as |