targetRayMode property
The read-only XRInputSource
property targetRayMode
indicates the method by which the
target ray for the input source should be generated and how it should be
presented to
the user.
Typically a target ray is drawn from the source of the targeting system along the target ray in the direction in which the user is looking or pointing. The style of the ray is generally up to you, as is the method for indicating the endpoint of the ray. The targeted point or object might be indicated by drawing a shape or highlighting the targeted surface or object.
A target ray emitted by a hand controller:
The target ray can be anything from a simple line (ideally fading over distance) to an animated effect, such as the science-fiction "phaser" style shown in the screenshot above.
Implementation
external XRTargetRayMode get targetRayMode;