docs.unity3d.com
    Show / Hide Table of Contents

    Struct XRRaycastSubsystemDescriptor.Cinfo

    Used to register a descriptor. See RegisterDescriptor(XRRaycastSubsystemDescriptor.Cinfo).

    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public struct Cinfo : IEquatable<XRRaycastSubsystemDescriptor.Cinfo>

    Properties

    id

    A provider-specific identifier.

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

    subsystemImplementationType

    The Type of the subsystem.

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

    supportedTrackableTypes

    The types of trackables against which raycasting is supported.

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

    supportsTrackedRaycasts

    Whether "tracked" raycasts are supported. A tracked raycast is repeated over time and the results are updated automatically.

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

    supportsViewportBasedRaycast

    Whether the provider supports casting a ray from a screen point.

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

    supportsWorldBasedRaycast

    Whether the provider supports casting an arbitrary ray.

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

    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
    Boolean

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

    Overrides
    ValueType.Equals(Object)

    Equals(XRRaycastSubsystemDescriptor.Cinfo)

    Tests for equality.

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

    The other XRRaycastSubsystemDescriptor.Cinfo to compare against.

    Returns
    Type Description
    Boolean

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

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code generated from this object's fields.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of this XRRaycastSubsystemDescriptor.Cinfo.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string representation of this XRRaycastSubsystemDescriptor.Cinfo.

    Overrides
    ValueType.ToString()

    Operators

    Equality(XRRaycastSubsystemDescriptor.Cinfo, XRRaycastSubsystemDescriptor.Cinfo)

    Tests for equality. Same as Equals(XRRaycastSubsystemDescriptor.Cinfo).

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

    The left-hand side of the comparison.

    XRRaycastSubsystemDescriptor.Cinfo rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    Boolean

    True if lhs is equal to rhs, otherwise false.

    Inequality(XRRaycastSubsystemDescriptor.Cinfo, XRRaycastSubsystemDescriptor.Cinfo)

    Tests for inequality. Same as !Equals(XRRaycastSubsystemDescriptor.Cinfo).

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

    The left-hand side of the comparison.

    XRRaycastSubsystemDescriptor.Cinfo rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    Boolean

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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023