unreal.ToolMenuEntry

class unreal.ToolMenuEntry(name: Name = 'None', owner: ToolMenuOwner = Ellipsis, type: MultiBlockType = Ellipsis, user_interface_action_type: UserInterfaceActionType = Ellipsis, tutorial_highlight_name: Name = 'None', insert_position: ToolMenuInsert = Ellipsis, should_close_window_after_menu_selection: bool = False, script_object: ToolMenuEntryScript = Ellipsis, style_name_override: Name = 'None')

Bases: StructBase

Tool Menu Entry

C++ Source:

  • Module: ToolMenus

  • File: ToolMenuEntry.h

Editor Properties: (see get_editor_property/set_editor_property)

  • insert_position (ToolMenuInsert): [Read-Write] Insert Position

  • name (Name): [Read-Write] Name

  • owner (ToolMenuOwner): [Read-Write] Owner

  • script_object (ToolMenuEntryScript): [Read-Write] Script Object

  • should_close_window_after_menu_selection (bool): [Read-Write] Should Close Window After Menu Selection

  • style_name_override (Name): [Read-Write] Style Name Override

  • tutorial_highlight_name (Name): [Read-Write] Tutorial Highlight Name

  • type (MultiBlockType): [Read-Write] Type

  • user_interface_action_type (UserInterfaceActionType): [Read-Write] User Interface Action Type

get_label() Text

Get Label

Return type:

Text

get_tool_tip() Text

Get Tool Tip

Return type:

Text

property insert_position: ToolMenuInsert

[Read-Write] Insert Position

Type:

(ToolMenuInsert)

property name: Name

[Read-Write] Name

Type:

(Name)

property owner: ToolMenuOwner

[Read-Write] Owner

Type:

(ToolMenuOwner)

property script_object: ToolMenuEntryScript

[Read-Write] Script Object

Type:

(ToolMenuEntryScript)

set_icon(style_set_name, style_name='None', small_style_name='None') None

Set Icon

Parameters:
  • style_set_name (Name) –

  • style_name (Name) –

  • small_style_name (Name) –

set_label(label) None

Set Label

Parameters:

label (Text) –

set_string_command(type, custom_type, string) None

Set String Command

Parameters:
set_tool_tip(tool_tip) None

Set Tool Tip

Parameters:

tool_tip (Text) –

property should_close_window_after_menu_selection: bool

[Read-Write] Should Close Window After Menu Selection

Type:

(bool)

property style_name_override: Name

[Read-Write] Style Name Override

Type:

(Name)

property tutorial_highlight_name: Name

[Read-Write] Tutorial Highlight Name

Type:

(Name)

property type: MultiBlockType

[Read-Write] Type

Type:

(MultiBlockType)

property user_interface_action_type: UserInterfaceActionType

[Read-Write] User Interface Action Type

Type:

(UserInterfaceActionType)