Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectSubsystem.h |
| Include | #include "SmartObjectSubsystem.h" |
Syntax
USTRUCT&40;BlueprintType&41;
struct FSmartObjectRequestFilter
Remarks
Struct that can be used to filter results of a smart object request when trying to find or claim a smart object
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGameplayTagQuery | ActivityRequirements | Only return slots whose activity tags are matching this query. | |
| TArray< TSubclassOf< USmartObjectBehaviorDefinition > > | BehaviorDefinitionClasses | If set, will filter out any SmartObject that uses different BehaviorDefinition classes. | |
| bool | bShouldEvaluateConditions | If true will evaluate the slot and object conditions, otherwise will skip them. | |
| TFunction< bool(FSmartObjectHandle)> | Predicate | Is set, will filter out any SmartObject that does not pass the predicate. | |
| FGameplayTagContainer | UserTags | Gameplay tags of the Actor or Entity requesting the Smart Object slot. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Macro needed to avoid deprecation errors with BehaviorDefinitionClass_DEPRECATED being copied or created in the default methods. | ||
Operators
| Type | Name | Description | |
|---|---|---|---|
| FSmartObjectRequestFilter & | operator=
(
const FSmartObjectRequestFilter& |
||
| FSmartObjectRequestFilter & |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TSubclassOf< USmartObjectBehaviorDefinition > | BehaviorDefinitionClass | Use BehaviorDefinitionClasses instead. | |
| FWorldConditionContextData | ConditionContextData | Condition context data is no longer provided by the request filter. Instead you must provide user data struct to find objects or use filter methods. | |
| TObjectPtr< AActor > | UserActor | User actor is no longer provided by the request filter. Instead you must provide user data struct to claim find objects or use filter methods. |