ContextualMenu module
- Last UpdatedJul 20, 2026
- 1 minute read
The ContextualMenu module provides a flexible, customizable contextual menu system for XR applications. It supports:
-
Dynamic layouts. Multiple menu layouts with sections and buttons.
-
Floating button. Optional floating button trigger for menu activation in center of the screen.
-
Submenu support. Hierarchical menu structure with parent buttons that open submenus.
-
Submenu layouts. Supports two submenu layouts:
-
Text-based vertical list (names).
-
Icon-based grid (iconGrid).
-
-
Click positioning. Menu can be triggered at arbitrary screen positions (such as right-click locations).
-
Edge detection. Automatic repositioning to prevent menu overflow at screen edges.
The module is designed for interactive 3D environments where users need quick access to context-sensitive actions.
This image shows the default menu layout and a customized menu layout.

This image shows two versions of submenu: one with text labels and one with icons.
