๐Ÿ“UI Interaction

Hand Canvas Pointer

Simulates a cursor with clicking and sliding for interactions with Unity Canvas UI in VR.

Canvas's require Graphics Raycaster component

Should go on an empty transform under the hand or controller. Requires a line renderer which will be automatically shown/hidden when interacting with UI.

Hit Point Marker is an object that will appear and match the hit position and normal of the targeted UI only when targeting a UI

Raycast Length the max length of the UI pointer

Auto Show Target is whether or not you should point, or point and click to activate the pointer

UI Layer is the physics layer a pointer can point at

Events

Start Select called when actively pointing at a valid UI and the HandCanvasPointer.Press() function is called

Stop Select called when actively pointing at a valid UI and the HandCanvasPointer.Release() function is called

Start Point called when start pointing at a valid UI

Stop Point called when stop pointing at a valid UI

This is where the UI Pointer is on the default prefab

Controller Input

A general script with a Unity Event attached to a controller action

OpenXR

Advanced Information

On Start this component will generate a camera (which does not render or create additional graphics overhead) set each canvas in the scene to use that camera for UI interaction, and destroy any additional event systems.

This system is not simultaneously compatible with desktop UI interaction or additional event systems in the scene

Last updated