Show Object Menu Action
The ShowObjectMenuAction Action allows you to create a menu to group other Actions together so that they can be called from it.
ShowObjectMenuAction
Creating an Action of type ShowObjectMenuAction gives you the Actions menu (it is automatically created as a child of it, in the scene hierarchy) and the Action itself is also the way the menu is displayed.
When the Action is invoked the menu will be displayed for the user who called the Action. It will display the Actions you configure, by dragging them to the Actions field of the ShowObjectMenuAction, when the user selects one of the Actions it will be executed for all users in the session. A Close Menu button will also be shown, which is always shown to close the menu without executing any of the Actions.
In the Actions menu you can drag any other Action in the scene. The name that will be displayed in the menu is the one you put in the Menu Label of those Actions.
ShowObjectMenuAction Settings | |
---|---|
Field | Description |
Reposition | If selected, the menu will open in front of the user. Otherwise, the menu will be displayed in the position where it has been placed in the scene. |
Distance | If the Reposition option is selected, this is the distance from the player at which the menu will be displayed. |
Menu | The DynamicInteractableObjectMenu component that will be used to display the menu. This is automatically created and assigned when the Action is created. |
Show Parent Menu Actions | If selected, and this menu contains other menus as parents in the hierarchy, it will also display their options. |
Actions | The list of Actions that this menu will display. |