unreal.ToolMenu
¶
- class unreal.ToolMenu(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
ToolMenuBase
Tool Menu
C++ Source:
Module: ToolMenus
File: ToolMenu.h
Editor Properties: (see get_editor_property/set_editor_property)
close_self_only
(bool): [Read-Write] Close Self Onlymenu_name
(Name): [Read-Write] Menu Namemenu_owner
(ToolMenuOwner): [Read-Write] Menu Ownermenu_parent
(Name): [Read-Write] Menu Parentmenu_type
(MultiBoxType): [Read-Write] Menu Typeprevent_customization
(bool): [Read-Write] Prevent Customization: Prevent menu from being customizedsearchable
(bool): [Read-Write] Searchableshould_close_window_after_menu_selection
(bool): [Read-Write] Should Close Window After Menu Selectionstyle_name
(Name): [Read-Write] Style Nametool_bar_force_small_icons
(bool): [Read-Write] Tool Bar Force Small Iconstool_bar_is_focusable
(bool): [Read-Write] Tool Bar Is Focusabletutorial_highlight_name
(Name): [Read-Write] Tutorial Highlight Name
- add_dynamic_section(section_name, object) → None¶
Add Dynamic Section Script
- Parameters:
section_name (Name) –
object (ToolMenuSectionDynamic) –
- add_menu_entry(section_name, args) → None¶
Add Menu Entry
- Parameters:
section_name (Name) –
args (ToolMenuEntry) –
- add_menu_entry_object(object) → None¶
Add Menu Entry Object
- Parameters:
object (ToolMenuEntryScript) –
- add_section(section_name, label='', insert_name='None', insert_type=ToolMenuInsertType.DEFAULT) → None¶
Add Section Script
- Parameters:
section_name (Name) –
label (Text) –
insert_name (Name) –
insert_type (ToolMenuInsertType) –
- init_menu(owner, name, parent='None', type=MultiBoxType.MENU) → None¶
Init Menu
- Parameters:
owner (ToolMenuOwner) –
name (Name) –
parent (Name) –
type (MultiBoxType) –
- property menu_owner: ToolMenuOwner¶
[Read-Write] Menu Owner
- Type:
- property menu_type: MultiBoxType¶
[Read-Write] Menu Type
- Type:
- property prevent_customization: bool¶
[Read-Write] Prevent Customization: Prevent menu from being customized
- Type:
(bool)