unreal.LevelEditorContextMenuContext

class unreal.LevelEditorContextMenuContext(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: Object

Level Editor Context Menu Context

C++ Source:

  • Module: LevelEditor

  • File: LevelEditorMenuContext.h

Editor Properties: (see get_editor_property/set_editor_property)

  • context_type (LevelEditorMenuContext): [Read-Only] Context Type

  • current_selection (TypedElementSelectionSet): [Read-Only] Current Selection

  • cursor_world_location (Vector): [Read-Only] Cursor World Location

  • hit_proxy_actor (Actor): [Read-Only] Hit Proxy Actor: If the ContextType is Viewport this property can be set to the HitProxy actor that triggered the ContextMenu.

  • selected_components (Array[ActorComponent]): [Read-Only] Selected Components

property context_type: LevelEditorMenuContext

[Read-Only] Context Type

Type:

(LevelEditorMenuContext)

property current_selection: TypedElementSelectionSet

[Read-Only] Current Selection

Type:

(TypedElementSelectionSet)

property cursor_world_location: Vector

[Read-Only] Cursor World Location

Type:

(Vector)

get_hit_proxy_element() ScriptTypedElementHandle

Get Script Hit Proxy Element

Return type:

ScriptTypedElementHandle

property hit_proxy_actor: Actor

[Read-Only] Hit Proxy Actor: If the ContextType is Viewport this property can be set to the HitProxy actor that triggered the ContextMenu.

Type:

(Actor)

property selected_components: Array[ActorComponent]

[Read-Only] Selected Components

Type:

(Array[ActorComponent])