unreal.SmartObjectSlotDefinition

class unreal.SmartObjectSlotDefinition(offset: Vector3f = Ellipsis, rotation: Rotator3f = Ellipsis, enabled: bool = False, user_tag_filter: GameplayTagQuery = [], activity_tags: GameplayTagContainer = Ellipsis, runtime_tags: GameplayTagContainer = Ellipsis, behavior_definitions: None = [])

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

  • debug_draw_color (Color): [Read-Write]

  • debug_draw_shape (SmartObjectSlotShape): [Read-Write]

  • debug_draw_size (float): [Read-Write]

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

  • enabled (bool): [Read-Write] Whether the slot is enable initially.

  • id (Guid): [Read-Write]

  • name (Name): [Read-Write]

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

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

  • runtime_tags (GameplayTagContainer): [Read-Write] Initial runtime tags.

  • selection_preconditions (WorldConditionQueryDefinition): [Read-Write] Preconditions that must pass for the slot to be selected.

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

property activity_tags: GameplayTagContainer

[Read-Only] 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.

Type:

(GameplayTagContainer)

property behavior_definitions: None

[Read-Only] 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.

Type:

(Array[SmartObjectBehaviorDefinition])

property enabled: bool

[Read-Only] Whether the slot is enable initially.

Type:

(bool)

property offset: Vector3f

[Read-Only] Offset relative to the parent object where the slot is located.

Type:

(Vector3f)

property rotation: Rotator3f

[Read-Only] Rotation relative to the parent object.

Type:

(Rotator3f)

property runtime_tags: GameplayTagContainer

[Read-Only] Initial runtime tags.

Type:

(GameplayTagContainer)

property user_tag_filter: GameplayTagQuery

[Read-Only] This slot is available only for users matching this query.

Type:

(GameplayTagQuery)