OpenContextMenu

Opens Context Menu by clicking on a non-UI gameobject.
Requires PhysicsRaycaster on main camera for the 3D objects.
Requires PhysicsRaycaster2D on main camera for the 2D objects.

Options

  • Interactable bool

    Allow users interact with this widget.

  • Menu ContextMenu

    Menu to open.

  • PointerButton PointerEventData.InputButton

    The pointer button is used to open the menu.