class unreal.SmartObjectSlotDefinition

Bases: StructBase

Persistent and sharable definition of a smart object slot.

C++ Source:

  • Plugin: SmartObjects

  • Module: SmartObjectsModule

  • File: SmartObjectDefinition.h

Editor Properties: (see get_editor_property/set_editor_property)

  • activity_tags (GameplayTagContainer): [Read-Write] Activity Tags: Tags identifying this slot’s use case. Can be used while looking for slots supporting given activity. Depending on the tag filtering policy these tags can override the parent object’s tags or be combined with them while applying filters from requests.

  • behavior_definitions (Array[SmartObjectBehaviorDefinition]): [Read-Write] Behavior Definitions: All available definitions associated to this slot. This allows multiple frameworks to provide their specific behavior definition to the slot. Note that there should be only one definition of each type since the first one will be selected.

  • data (Array[InstancedStruct]): [Read-Write] Data: Custom data (struct inheriting from SmartObjectSlotDefinitionData) that can be added to the slot definition and accessed through a FSmartObjectSlotView

  • debug_draw_color (Color): [Read-Write] DEBUG Draw Color

  • name (Name): [Read-Write] Name

  • offset (Vector): [Read-Write] Offset: Offset relative to the parent object where the slot is located.

  • rotation (Rotator): [Read-Write] Rotation: Rotation relative to the parent object.

  • user_tag_filter (GameplayTagQuery): [Read-Write] User Tag Filter: This slot is available only for users matching this query.