UDatasmithSceneElementBase::GetAllObjectsAndValuesForKey

Find all objects of the given type that have a metadata element that contains the given key and their associated values.

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUSceneElement.h

Include

#include "ObjectElements/DatasmithUSceneElement.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/ObjectElements/DatasmithUSceneElement.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Datasmith | Scene",
          Meta=(DeterminesOutputType="ObjectClass", DynamicOutputParam="OutObjects"))
void GetAllObjectsAndValuesForKey
(
    const FString & Key,
    TSubclassOf< UDatasmithObjectElement > ObjectClass,
    TArray< UDatasmithObjectElement * > & OutObjects,
    TArray< FString > & OutValues
)

Remarks

Find all objects of the given type that have a metadata element that contains the given key and their associated values.

Parameters

Parameter

Description

Key

The key to find in the metadata element.

ObjectClass

Class of the object on which to filter, if specificed; otherwise there's no filtering

OutObjects

Output array of objects for which the metadata element contains 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