docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ARObjectInfo

    Represents metadata associated with a .arobject archive. These archives are the source data for ARKitReferenceObjectEntry.

    Implements
    IEquatable<ARObjectInfo>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 ARObjectInfo.

    Declaration
    public ARObjectInfo(XmlDocument plist)
    Parameters
    Type Name Description
    XmlDocument plist

    A valid PlistDocument to parse.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if plist is null.

    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    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
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    referenceOrigin

    The reference origin for the scanned object.

    Declaration
    public readonly Pose referenceOrigin { get; }
    Property Value
    Type Description
    Pose
    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    trackingDataReference

    The filename of the source data representing the scanned object.

    Declaration
    public readonly string trackingDataReference { get; }
    Property Value
    Type Description
    string
    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    valid

    true if the ARObjectInfo represents valid data, otherwise false.

    Declaration
    public bool valid { get; }
    Property Value
    Type Description
    bool
    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    version

    The version of the metadata format.

    Declaration
    public readonly int version { get; }
    Property Value
    Type Description
    int
    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    Methods

    Equals(object)

    Tests for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type ARObjectInfo and Equals(ARObjectInfo) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)
    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    Equals(ARObjectInfo)

    Tests for equality.

    Declaration
    public bool Equals(ARObjectInfo other)
    Parameters
    Type Name Description
    ARObjectInfo other

    The other ARObjectInfo to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this ARObjectInfo, otherwise false.

    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    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
    ValueType.GetHashCode()
    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    Operators

    operator ==(ARObjectInfo, ARObjectInfo)

    Tests for equality. Same as Equals(ARObjectInfo).

    Declaration
    public static bool operator ==(ARObjectInfo lhs, ARObjectInfo rhs)
    Parameters
    Type Name Description
    ARObjectInfo lhs

    The left-hand side of the comparison.

    ARObjectInfo rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    operator !=(ARObjectInfo, ARObjectInfo)

    Tests for inequality. Same as !Equals(ARObjectInfo).

    Declaration
    public static bool operator !=(ARObjectInfo lhs, ARObjectInfo rhs)
    Parameters
    Type Name Description
    ARObjectInfo lhs

    The left-hand side of the comparison.

    ARObjectInfo rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is not equal to rhs, otherwise false.

    See Also
    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry

    Implements

    IEquatable<T>

    See Also

    ARObject
    ARObjectImporter
    ARKitReferenceObjectEntry
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)