docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRRaycastSubsystemDescriptor

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

    Inheritance
    object
    SubsystemDescriptorWithProvider
    SubsystemDescriptorWithProvider<XRRaycastSubsystem, XRRaycastSubsystem.Provider>
    XRRaycastSubsystemDescriptor
    Implements
    ISubsystemDescriptor
    Inherited Members
    SubsystemDescriptorWithProvider<XRRaycastSubsystem, XRRaycastSubsystem.Provider>.Create()
    SubsystemDescriptorWithProvider.id
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public sealed class XRRaycastSubsystemDescriptor : SubsystemDescriptorWithProvider<XRRaycastSubsystem, XRRaycastSubsystem.Provider>, 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
    bool

    supportsViewportBasedRaycast

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

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

    supportsWorldBasedRaycast

    Whether the provider supports casting an arbitrary ray.

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

    Methods

    Register(Cinfo)

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

    Declaration
    public static void Register(XRRaycastSubsystemDescriptor.Cinfo cinfo)
    Parameters
    Type Name Description
    XRRaycastSubsystemDescriptor.Cinfo cinfo

    RegisterDescriptor(Cinfo)

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

    Declaration
    [Obsolete("RegisterDescriptor(Cinfo) has been deprecated in AR Foundation version 6.0. Use Register(Cinfo) instead (UnityUpgradable) -> Register(*)", false)]
    public static void RegisterDescriptor(XRRaycastSubsystemDescriptor.Cinfo cinfo)
    Parameters
    Type Name Description
    XRRaycastSubsystemDescriptor.Cinfo cinfo

    Implements

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