Navigation
API > API/Plugins > API/Plugins/MassSmartObjects
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)));
| Name | FSmartObjectMassEntityUserData |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectTypes.h |
| Include Path | #include "MassSmartObjectTypes.h" |
Syntax
USTRUCT ()
struct FSmartObjectMassEntityUserData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MassSmartObjectTypes.h | |||
FSmartObjectMassEntityUserData
(
const FMassEntityHandle InEntityHandle |
MassSmartObjectTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| UserEntity | FMassEntityHandle | MassSmartObjectTypes.h |