unreal.SmartObjectEventData

class unreal.SmartObjectEventData(smart_object_handle: SmartObjectHandle = [], slot_handle: SmartObjectSlotHandle = [], reason: SmartObjectChangeReason = Ellipsis, tag: GameplayTag = Ellipsis)

Bases: StructBase

Struct describing a change in Smart Object or Slot.

C++ Source:

  • Plugin: SmartObjects

  • Module: SmartObjectsModule

  • File: SmartObjectTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • reason (SmartObjectChangeReason): [Read-Write] Change reason.

  • slot_handle (SmartObjectSlotHandle): [Read-Write] Handle to the changed slot, if invalid, the event is for the object.

  • smart_object_handle (SmartObjectHandle): [Read-Write] Handle to the changed Smart Object.

  • tag (GameplayTag): [Read-Write] Added/Removed tag, or event tag, depending on Reason.

property reason: SmartObjectChangeReason

[Read-Only] Change reason.

Type:

(SmartObjectChangeReason)

property slot_handle: SmartObjectSlotHandle

[Read-Only] Handle to the changed slot, if invalid, the event is for the object.

Type:

(SmartObjectSlotHandle)

property smart_object_handle: SmartObjectHandle

[Read-Only] Handle to the changed Smart Object.

Type:

(SmartObjectHandle)

property tag: GameplayTag

[Read-Only] Added/Removed tag, or event tag, depending on Reason.

Type:

(GameplayTag)