unreal.SmartObjectDefinition

class unreal.SmartObjectDefinition(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: DataAsset

SmartObject definition asset. Contains sharable information that can be used by multiple SmartObject instances at runtime.

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 Smart Object’s use case. Can be used while looking for objects supporting given activity

  • activity_tags_merging_policy (SmartObjectTagMergingPolicy): [Read-Write] Activity Tags Merging Policy: Indicates how Tags from slots and parent object are combined to be evaluated by a TagQuery from a find request.

  • default_behavior_definitions (Array[SmartObjectBehaviorDefinition]): [Read-Write] Default Behavior Definitions: List of behavior definitions of different types provided to SO’s user if the slot does not provide one.

  • object_tag_filter (GameplayTagQuery): [Read-Write] Object Tag Filter: This object is available if instance tags match this query; always available if query is empty.

  • slots (Array[SmartObjectSlotDefinition]): [Read-Write] Slots: Where SmartObject’s user needs to stay to be able to activate it. These will be used by AI to approach the object. Locations are relative to object’s location.

  • user_tag_filter (GameplayTagQuery): [Read-Write] User Tag Filter: This object is available if user tags match this query; always available if query is empty.

  • user_tags_filtering_policy (SmartObjectTagFilteringPolicy): [Read-Write] User Tags Filtering Policy: Indicates how TagQueries from slots and parent object will be processed against User Tags from a find request.