Navigation
API > API/Plugins > API/Plugins/MassSmartObjects
References
| Module | MassSmartObjects |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectTypes.h |
| Include | #include "MassSmartObjectTypes.h" |
Syntax
USTRUCT ()
struct FSmartObjectMassEntityUserData
Remarks
Struct that can be used to pass data to the find or filtering methods. Properties will be used as external data to fill values expected by the world condition schema specified by the smart object definition. e.g. FilterSlotsBySelectionConditions(SlotHandles, FConstStructView::Make(FSmartObjectMassEntityUserData(Entity)));
It can be inherited from to provide additional data to another world condition schema inheriting from USmartObjectWorldConditionSchema. e.g. UCLASS() class USmartObjectWorldConditionExtendedSchema : public USmartObjectWorldConditionSchema { ... USmartObjectWorldConditionExtendedSchema(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { OtherEntityRef = AddContextDataDesc(TEXT("OtherEntity"), FMassEntityHandle::StaticStruct(), EWorldConditionContextDataType::Dynamic); }
FWorldConditionContextDataRef OtherEntityRef; };
USTRUCT() struct FSmartObjectMassEntityExtendedUserData : public FSmartObjectMassEntityUserData { FMassEntityHandle OtherEntity; }
The struct can also be used to be added to a Smart Object slot when it gets claimed. e.g. Claim(SlotHandle, FConstStructView::Make(FSmartObjectMassEntityUserData(Entity)));
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMassEntityHandle | UserEntity |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSmartObjectMassEntityUserData
(
const FMassEntityHandle InEntityHandle |