Context Menu

Options

  • Interactable bool

    Allow users interact with the ListView.

  • Template ContextMenuTemplate

    Context menu template.

  • MenuItems ObservableList<MenuItem>

    Menu items.

  • Is Default bool

    Is default menu? Default menu will be opened on context menu key press.

  • Navigation bool

    Enable keyboard and gamepad navigation.

  • Open On Right Button Click bool

    Open context menu on right mouse button click.

  • Open On Context Menu Key bool

    Open context menu on context menu key press.

  • Submenu Delay float

    Delay before open and close sub menu.

  • Unscaled Time bool

    Use unscaled time.

Events

  • OnOpen UnityEvent<ContextMenu>

    The event raised when context menu opened.

    Arguments: opened context menu.

  • OnClose UnityEvent<ContextMenu>

    The event raised when context menu closed.

    Arguments: closed context menu.

  • OnItemSelect UnityEvent<MenuItem>

    The event raised when menu item selected.

    Arguments: selected menu item.

  • OnItemDeselect UnityEvent<ContextMenu>

    The event raised when menu item deselected.

    Arguments: selected menu item.