unreal.SmartObjectSlotDefinition

class unreal.SmartObjectSlotDefinition

Bases: unreal.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)

  • 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 that can be added to the slot definition and access through a FSmartObjectSlotView

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

  • 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.