Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectBlueprintFunctionLib-
Description
Returns all definition data entries of a specific struct type from a slot's DefinitionData. Set the output pin to the desired struct type (must inherit from FSmartObjectDefinitionData) to filter results. The returned array contains copies of all matching entries, safe for Blueprint read access.
If the output type is a base class and the actual data is a derived type, only the base class fields will be copied (struct slicing). Use the most specific type you need for complete data.
| Name | GetSlotDefinitionDataByType |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectBlueprintFunctionLibrary.h |
| Include Path | #include "SmartObjectBlueprintFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectBlueprintFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, CustomThunk, Category="SmartObject",
Meta=(ArrayParm="OutDefinitionData", DisplayName="Get Slot Definition Data By Type", ReturnDisplayName="bFound", Keywords="definition data filter annotation slot struct type"))
static bool GetSlotDefinitionDataByType
(
const USmartObjectDefinition * Definition,
int32 SlotIndex,
TArray < int32 > & OutDefinitionData
)
True if at least one matching entry was found
Parameters
| Name | Remarks |
|---|---|
| Definition | The smart object definition to query |
| SlotIndex | Index of the slot to query |
| OutDefinitionData | Output array of matching definition data structs (type determined by pin connection) |