unreal.ToolMenuEntryScript

class unreal.ToolMenuEntryScript(outer=None, name='None')

Bases: unreal.Object

Tool Menu Entry Script

C++ Source:

  • Module: ToolMenus

  • File: ToolMenuEntryScript.h

Editor Properties: (see get_editor_property/set_editor_property)

  • data (ToolMenuEntryScriptData): [Read-Write] Data

can_execute(context)bool

Can Execute

Parameters

context (ToolMenuContext) –

Returns

Return type

bool

construct_menu_entry(menu, section_name, context)None

Construct Menu Entry

Parameters
property data

[Read-Write] Data

Type

(ToolMenuEntryScriptData)

execute(context)None

Execute

Parameters

context (ToolMenuContext) –

get_check_state(context)CheckBoxState

Get Check State

Parameters

context (ToolMenuContext) –

Returns

Return type

CheckBoxState

get_icon(context)ScriptSlateIcon

Get Icon

Parameters

context (ToolMenuContext) –

Returns

Return type

ScriptSlateIcon

get_label(context)Text

Get Label

Parameters

context (ToolMenuContext) –

Returns

Return type

Text

get_tool_tip(context)Text

Get Tool Tip

Parameters

context (ToolMenuContext) –

Returns

Return type

Text

init_entry(owner_name, menu, section, name, label='', tool_tip='')None

Init Entry

Parameters
is_visible(context)bool

Is Visible

Parameters

context (ToolMenuContext) –

Returns

Return type

bool

register_menu_entry()None

Register Menu Entry