Navigation
API > API/Plugins > API/Plugins/DatasmithContent > API/Plugins/DatasmithContent/UDatasmithContentBlueprintLibrar-
Description
Find all loaded objects of the given type that have a Datasmith User Data that contains the given key and their associated values. This is a slow operation, so editor only.
| Name | GetAllObjectsAndValuesForKey |
| Type | function |
| Header File | /Engine/Plugins/Enterprise/DatasmithContent/Source/DatasmithContent/Public/DatasmithContentBlueprintLibrary.h |
| Include Path | #include "DatasmithContentBlueprintLibrary.h" |
| Source | /Engine/Plugins/Enterprise/DatasmithContent/Source/DatasmithContent/Private/DatasmithContentBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Datasmith User Data",
Meta=(DeterminesOutputType="ObjectClass", DynamicOutputParam="OutObjects"))
static void GetAllObjectsAndValuesForKey
(
FName Key,
TSubclassOf < UObject > ObjectClass,
TArray < UObject * > & OutObjects,
TArray < FString > & OutValues
)
Parameters
| Name | Remarks |
|---|---|
| Key | The key to find in the Datasmith User Data. |
| ObjectClass | Class of the object on which to filter, if specificed; otherwise there's no filtering |
| OutObjects | Output array of objects for which the Datasmith User Data match the given key. |
| OutValues | Output array of values associated with each object in OutObjects. |