Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include | #include "SmartObjectDefinition.h" |
Syntax
USTRUCT (BlueprintType )
struct FSmartObjectSlotDefinition
Remarks
Persistent and sharable definition of a smart object slot.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGameplayTagContainer | ActivityTags | Tags identifying this slot's use case. | |
| TArray< TObjectPtr< USmartObjectBehaviorDefinition > > | BehaviorDefinitions | All available definitions associated to this slot. | |
| bool | bEnabled | Whether the slot is enable initially. | |
| FColor | DEBUG_DrawColor | ||
| ESmartObjectSlotShape | DEBUG_DrawShape | ||
| float | DEBUG_DrawSize | ||
| TArray< FSmartObjectDefinitionDataProxy > | DefinitionData | Custom definition data items (struct inheriting from SmartObjecDefinitionData) that can be added to the slot definition and accessed through a FSmartObjectSlotView | |
| FGuid | ID | ||
| FName | Name | ||
| FVector3f | Offset | Offset relative to the parent object where the slot is located. | |
| FRotator3f | Rotation | Rotation relative to the parent object. | |
| FGameplayTagContainer | RuntimeTags | Initial runtime tags. | |
| FWorldConditionQueryDefinition | SelectionPreconditions | Preconditions that must pass for the slot to be selected. | |
| FGameplayTagQuery | UserTagFilter | This slot is available only for users matching this query. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Macro needed to avoid deprecation errors with "Data" being copied or created in the default methods. | ||
Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_ENABLE_DEPRECATION_WARNINGS const T & | Returns a reference to the definition data of the specified type. | ||
| const T * | Returns a pointer to the definition data of the specified type. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FSmartObjectSlotDefinition & | operator=
(
const FSmartObjectSlotDefinition& |
||
| FSmartObjectSlotDefinition & |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FInstancedStruct > | Data_DEPRECATED |