unreal.ToolMenuSection

class unreal.ToolMenuSection(name='None', blocks=[], insert_position=['None', ToolMenuInsertType.DEFAULT], context=[], tool_menu_section_dynamic=None)

Bases: unreal.StructBase

Tool Menu Section

C++ Source:

  • Module: ToolMenus
  • File: ToolMenuSection.h

Editor Properties: (see get_editor_property/set_editor_property)

  • blocks (Array(ToolMenuEntry)): [Read-Write] Blocks
  • context (ToolMenuContext): [Read-Write] Context
  • insert_position (ToolMenuInsert): [Read-Write] Insert Position
  • name (Name): [Read-Write] Name
  • tool_menu_section_dynamic (ToolMenuSectionDynamic): [Read-Write] Tool Menu Section Dynamic
add_entry(args) → None

Add Entry

Parameters:args (ToolMenuEntry) –
add_entry_object(object) → None

Add Entry Object

Parameters:object (ToolMenuEntryScript) –
blocks

(Array(ToolMenuEntry)) – [Read-Write] Blocks

context

(ToolMenuContext) – [Read-Write] Context

get_label() → Text

Get Label

Returns:
Return type:Text
insert_position

(ToolMenuInsert) – [Read-Write] Insert Position

name

(Name) – [Read-Write] Name

set_label(label) → None

Set Label

Parameters:label (Text) –
tool_menu_section_dynamic

(ToolMenuSectionDynamic) – [Read-Write] Tool Menu Section Dynamic