Struct ARObjectInfo
Represents metadata associated with a .arobject
archive. These archives
are the source data for ARKit
Implements
Inherited Members
Namespace: UnityEditor .XR.ARKit
Assembly: Unity.XR.ARKit.Editor.dll
Syntax
public struct ARObjectInfo : IEquatable<ARObjectInfo>
Constructors
ARObjectInfo(XmlDocument)
Parses the plist
and constructs a new ARObject
Declaration
public ARObjectInfo(XmlDocument plist)
Parameters
Type | Name | Description |
---|---|---|
Xml |
plist | A valid |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if |
See Also
Properties
imageReference
The filename of an image contained within the archive that can be used as a preview for the scanned object.
Declaration
public readonly string imageReference { get; }
Property Value
Type | Description |
---|---|
string |
See Also
referenceOrigin
The reference origin for the scanned object.
Declaration
public readonly Pose referenceOrigin { get; }
Property Value
Type | Description |
---|---|
Pose |
See Also
trackingDataReference
The filename of the source data representing the scanned object.
Declaration
public readonly string trackingDataReference { get; }
Property Value
Type | Description |
---|---|
string |
See Also
valid
true
if the ARObjectfalse
.
Declaration
public bool valid { get; }
Property Value
Type | Description |
---|---|
bool |
See Also
version
The version of the metadata format.
Declaration
public readonly int version { get; }
Property Value
Type | Description |
---|---|
int |
See Also
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool |
|
Overrides
See Also
Equals(ARObjectInfo)
Tests for equality.
Declaration
public bool Equals(ARObjectInfo other)
Parameters
Type | Name | Description |
---|---|---|
ARObject |
other | The other ARObject |
Returns
Type | Description |
---|---|
bool |
|
See Also
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code generated from this object's fields. |
Overrides
See Also
Operators
operator ==(ARObjectInfo, ARObjectInfo)
Tests for equality. Same as Equals(ARObject
Declaration
public static bool operator ==(ARObjectInfo lhs, ARObjectInfo rhs)
Parameters
Type | Name | Description |
---|---|---|
ARObject |
lhs | The left-hand side of the comparison. |
ARObject |
rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|
See Also
operator !=(ARObjectInfo, ARObjectInfo)
Tests for inequality. Same as !
Equals(ARObject
Declaration
public static bool operator !=(ARObjectInfo lhs, ARObjectInfo rhs)
Parameters
Type | Name | Description |
---|---|---|
ARObject |
lhs | The left-hand side of the comparison. |
ARObject |
rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|