docs.unity3d.com
    Show / Hide Table of Contents

    Class XRRaycastSubsystemDescriptor

    Descriptor for the XRRaycastSubsystem. Describes capabilities of a specific raycast provider.

    Inheritance
    Object
    SubsystemDescriptor
    SubsystemDescriptor<XRRaycastSubsystem>
    XRRaycastSubsystemDescriptor
    Inherited Members
    SubsystemDescriptor<XRRaycastSubsystem>.Create()
    SubsystemDescriptor.ISubsystemDescriptor.Create()
    SubsystemDescriptor.id
    SubsystemDescriptor.subsystemImplementationType
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public sealed class XRRaycastSubsystemDescriptor : SubsystemDescriptor<XRRaycastSubsystem>, ISubsystemDescriptor

    Properties

    supportedTrackableTypes

    The types of trackables against which raycasting is supported.

    Declaration
    public TrackableType supportedTrackableTypes { get; }
    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 { get; set; }
    Property Value
    Type Description
    Boolean

    supportsViewportBasedRaycast

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

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

    supportsWorldBasedRaycast

    Whether the provider supports casting an arbitrary ray.

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

    Methods

    RegisterDescriptor(XRRaycastSubsystemDescriptor.Cinfo)

    Registers a new descriptor. Should be called by provider implementations.

    Declaration
    public static void RegisterDescriptor(XRRaycastSubsystemDescriptor.Cinfo cinfo)
    Parameters
    Type Name Description
    XRRaycastSubsystemDescriptor.Cinfo cinfo
    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