unreal.InteractionContext

class unreal.InteractionContext(target: InteractionTarget = Ellipsis, context_data: InstancedStruct = [])

Bases: StructBase

The context of a given interaction query. This holds some state about what is currently querying for intractable objects and will allow you to specify some specific game state around each interaction. see: IInteractionTarget::BeginInteraction

C++ Source:

  • Plugin: InteractionInterface

  • Module: InteractableInterface

  • File: InteractionTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • context_data (InstancedStruct): [Read-Write] Data about this specific interaction query

  • target (InteractionTarget): [Read-Write] The interactable target that should be used

property context_data: InstancedStruct

[Read-Write] Data about this specific interaction query

Type:

(InstancedStruct)

property target: InteractionTarget

[Read-Write] The interactable target that should be used

Type:

(InteractionTarget)