docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRAnchorSubsystemDescriptor.Cinfo

    Contains the parameters necessary to construct a new XRAnchorSubsystemDescriptor instance.

    Implements
    IEquatable<XRAnchorSubsystemDescriptor.Cinfo>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public struct XRAnchorSubsystemDescriptor.Cinfo : IEquatable<XRAnchorSubsystemDescriptor.Cinfo>

    Properties

    id

    The unique identifier of the provider implementation. No specific format is required.

    Declaration
    public string id { readonly get; set; }
    Property Value
    Type Description
    string

    providerType

    The provider implementation type to use for instantiation.

    Declaration
    public Type providerType { readonly get; set; }
    Property Value
    Type Description
    Type

    The provider implementation type.

    subsystemTypeOverride

    The XRAnchorSubsystem-derived type to use for instantiation. The instantiated instance of this type will forward casted calls to its provider.

    Declaration
    public Type subsystemTypeOverride { readonly get; set; }
    Property Value
    Type Description
    Type

    The subsystem implementation type. If null, XRAnchorSubsystem will be instantiated.

    supportsAsyncCancellation

    Indicates whether the provider implementation supports cancelling async operations in progress using CancellationTokens. If false, XRAnchorSubsystem APIs that take a CancellationToken as input will ignore the input cancellation token.

    Declaration
    public bool supportsAsyncCancellation { readonly get; set; }
    Property Value
    Type Description
    bool

    supportsEraseAnchor

    Indicates whether the provider implementation supports the ability to erase the persistent saved data associated with an anchor via XRAnchorSubsystem.TryEraseAnchorAsync.

    Declaration
    public bool supportsEraseAnchor { readonly get; set; }
    Property Value
    Type Description
    bool

    supportsGetSavedAnchorIds

    Indicates whether the provider implementation supports the ability to get all saved persistent anchor GUIDs via XRAnchorSubsystem.TryGetSavedAnchorIdsAsync.

    Declaration
    public bool supportsGetSavedAnchorIds { readonly get; set; }
    Property Value
    Type Description
    bool

    supportsLoadAnchor

    Indicates whether the provider implementation supports the ability to load persistently saved anchors via XRAnchorSubsystem.TryLoadAnchorAsync.

    Declaration
    public bool supportsLoadAnchor { readonly get; set; }
    Property Value
    Type Description
    bool

    supportsSaveAnchor

    Indicates whether the provider implementation supports the ability to persistently save anchors via XRAnchorSubsystem.TrySaveAnchorAsync.

    Declaration
    public bool supportsSaveAnchor { readonly get; set; }
    Property Value
    Type Description
    bool

    supportsSynchronousAdd

    Indicates whether the provider implementation supports synchronously adding anchors via XRAnchorSubsystem.TryAddAnchor. If false, TryAddAnchor must always return false. In this case, use XRAnchorSubsystem.TryAddAnchorAsync instead.

    Declaration
    public bool supportsSynchronousAdd { readonly get; set; }
    Property Value
    Type Description
    bool

    supportsTrackableAttachments

    Indicates whether the provider implementation supports attachments (that is, the ability to attach an anchor to a trackable). If false, XRAnchorSubsystem.TryAttachAnchor must always return false.

    Declaration
    public bool supportsTrackableAttachments { readonly get; set; }
    Property Value
    Type Description
    bool

    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 XRAnchorSubsystemDescriptor.Cinfo and Equals(Cinfo) also returns true. Otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(Cinfo)

    Tests for equality.

    Declaration
    public bool Equals(XRAnchorSubsystemDescriptor.Cinfo other)
    Parameters
    Type Name Description
    XRAnchorSubsystemDescriptor.Cinfo other

    The other XRAnchorSubsystemDescriptor.Cinfo to compare against.

    Returns
    Type Description
    bool

    true if every field in other is equal to this XRAnchorSubsystemDescriptor.Cinfo. Otherwise, false.

    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()

    Operators

    operator ==(Cinfo, Cinfo)

    Tests for equality. Equivalent to Equals(Cinfo).

    Declaration
    public static bool operator ==(XRAnchorSubsystemDescriptor.Cinfo lhs, XRAnchorSubsystemDescriptor.Cinfo rhs)
    Parameters
    Type Name Description
    XRAnchorSubsystemDescriptor.Cinfo lhs

    The left-hand side of the comparison.

    XRAnchorSubsystemDescriptor.Cinfo rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    true if lhs is equal to rhs. Otherwise, false.

    operator !=(Cinfo, Cinfo)

    Tests for inequality. Equivalent to !Equals(Cinfo).

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

    The left-hand side of the comparison.

    XRAnchorSubsystemDescriptor.Cinfo rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    true if lhs is not equal to rhs. Otherwise, false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 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)