UDatasmithContentBlueprintLibrary::GetAllObjectsAndValuesForKey

Find all loaded objects of the given type that have a Datasmith User Data that contains the given key and their associated values.

Windows
MacOS
Linux

References

Module

DatasmithContent

Header

/Engine/Plugins/Enterprise/DatasmithContent/Source/DatasmithContent/Public/DatasmithContentBlueprintLibrary.h

Include

#include "DatasmithContentBlueprintLibrary.h"

Source

/Engine/Plugins/Enterprise/DatasmithContent/Source/DatasmithContent/Private/DatasmithContentBlueprintLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(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
)

Remarks

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.

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss