Skip to content

Class · inherits Instance

PluginMenu

Official docs ↗

A context menu that can be shown in Studio. Displays a list of PluginActions and supports submenus.

About PluginMenu

PluginMenu represents a context menu which can be shown in Studio to display a list of PluginActions and which also supports submenus. A PluginMenu must be created using the Plugin.CreatePluginMenu method in order to work as expected.

Properties 2

  • Icon: stringNotReplicatedThe icon to be displayed when used as a submenu.

    This property determines the icon to be displayed when used as a submenu. It defaults to an empty string "".

  • Title: stringNotReplicatedThe text to be displayed when used as a submenu.

    This property determines the text to be displayed when a PluginMenu is used as a submenu. It defaults to an empty string "".

Methods 6

  • AddAction(action: Instance) → ()PluginAdds the given action to the menu.
  • AddMenu(menu: Instance) → ()PluginAdds the given menu as a separator.
  • AddNewAction(actionId: string, text: string, icon: string) → InstancePluginCreates a temporary action that is hidden from Studio's customize shortcuts window.

    Creates a temporary action that is hidden from Studio's File ⟩ Customize Shortcuts window.

  • AddSeparator() → ()PluginAdds a separator between items in the menu.
  • Clear() → ()PluginClears the menu.
  • ShowAsync() → InstanceYieldsPluginShows the menu at the mouse cursor. Yields until either an item is selected or the menu is closed.

    Shows the menu at the mouse cursor. It yields until either an item is selected or the menu is closed. The selected action fires its PluginAction.Triggered event.

PluginMenu also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.