Class XRRaycastSubsystemDescriptor
Descriptor for the XRRaycastSubsystem. Describes capabilities of a specific raycast provider.
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public sealed class XRRaycastSubsystemDescriptor : SubsystemDescriptor<XRRaycastSubsystem>
Properties
supportedTrackableTypes
The types of trackables against which raycasting is supported.
Declaration
public TrackableType supportedTrackableTypes { get; }
Property Value
Type | Description |
---|---|
TrackableType |
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 |