Skip to main content
The Shader Menu Show Action displays a shader-based menu to the player. This menu rendering uses core shaders to overlay UI elements on the screen, independent of FOV/GUI scaling.

Configuration

disableBetterHud
Boolean
default:"true"
Whether to hide other default BetterHud elements (like HUDs) while this menu is open.
interactionMode
Enum
default:"BOTH"
How the player interacts with buttons:
  • GAZE: Looking at the button triggers hover/click.
  • CLICK: Mouse click required.
  • BOTH: Supports both gaze and click.
buttons
List<Button>
List of buttons to display in this menu.

Button Configuration

id
String
default:"btn"
Unique ID for the button.
text
String
default:"Button"
Text displayed on the button.
x
Number
default:"50.0"
X position (0-100 screen percentage).
y
Number
default:"50.0"
Y position (0-100 screen percentage).
width
Number
default:"10.0"
Button width (screen percentage).
height
Number
default:"10.0"
Button height (screen percentage).
action
Ref<TriggerableEntry>
Action to trigger when the button is clicked/selected.
action:
  type: menu_show
  interactionMode: GAZE
  buttons:
    - id: "btn_start"
      text: "Start Game"
      x: 50.0
      y: 40.0
      width: 20.0
      height: 8.0
      action: "start_game_sequence"