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
- construct_menu_entry(menu, section_name, context) → None¶
Construct Menu Entry
- Parameters
menu (ToolMenu) –
section_name (Name) –
context (ToolMenuContext) –
- property data¶
[Read-Write] Data
- Type
- execute(context) → None¶
Execute
- Parameters
context (ToolMenuContext) –
- get_check_state(context) → CheckBoxState¶
Get Check State
- Parameters
context (ToolMenuContext) –
- Returns
- Return type
- get_icon(context) → ScriptSlateIcon¶
Get Icon
- Parameters
context (ToolMenuContext) –
- Returns
- Return type
- get_label(context) → Text¶
Get Label
- Parameters
context (ToolMenuContext) –
- Returns
- Return type
- get_tool_tip(context) → Text¶
Get Tool Tip
- Parameters
context (ToolMenuContext) –
- Returns
- Return type
- is_visible(context) → bool¶
Is Visible
- Parameters
context (ToolMenuContext) –
- Returns
- Return type