Table of contents
1. Add components to the UI interface
Premise: make a ui interface
1. Add components to the UI interface
Canvas plus tracked device graphic raycaster
Allows the canvas to be manipulated by tracking devices
2. Add xr input module
system event plus XR UI input component
This allows your left and right hand controllers to interact with the canvas
3. Set up the raycast mask
Set the raycast mask for the left and right hands to the layer of the object you want to interact with.
set ray length
result:
After the ray touches the button key, click the left button to realize the click button operation.
For the slide bar, press and hold the left mouse button to grab the slide bar, and drag the middle mouse button.