Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuItemProps

Props for AvMenuItem

Hierarchy

  • MenuItemProps

Index

Properties

Optional color

color: string | AvColor

The color to apply to the model.

default

none

Optional modelUri

modelUri: string

The URI of the GLTF model to use for this grab button. Exactly one of modelUri and radius must be specified. If modelUri is specified, the bounding box of the model will also be used as the grabbable region for the button.

Optional onHighlight

onHighlight: () => void

The onHighlight callback is called when the menu item is touched by the grabber (and will be selected if the user releases the menu button.)

Type declaration

    • (): void
    • Returns void

Optional onSelect

onSelect: () => void

The onSelect callback is called when the menu button is released while on the menu item.

Type declaration

    • (): void
    • Returns void

Optional radius

radius: number

The radius of the sphere that defines the grabbable handle for this grab button. Exactly one of modelUri and radius must be specified.

Generated using TypeDoc