Navigation
API > API/Plugins > API/Plugins/DataflowEditor
Registry mapping asset classes to content folders containing UDataflow template assets.
Modules register their template folders in StartupModule. When the Dataflow picker dialog opens for an asset, it queries this registry to populate the template tile list. Registrations for parent classes are automatically included (class hierarchy walk, most-derived first).
Example (in a plugin's editor module StartupModule):
FDataflowTemplateRegistry::Get().RegisterTemplateFolder( UChaosClothAsset::StaticClass(), { TEXT("/ChaosClothEditor/Dataflow/Templates"), FSlateIcon("ChaosClothEditorStyle", "ClassIcon.ChaosClothAsset") });
| Name | FDataflowTemplateRegistry |
| Type | class |
| Header File | /Engine/Plugins/Dataflow/Source/DataflowEditor/Public/Dataflow/DataflowTemplateRegistry.h |
| Include Path | #include "Dataflow/DataflowTemplateRegistry.h" |
Syntax
class FDataflowTemplateRegistry
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetRegistrations | TMap< FTopLevelAssetPath, TArray< FDataflowTemplateAssetRegistration > > | Keyed by class path so we don't hold raw UClass* pointers across module reloads. | Dataflow/DataflowTemplateRegistry.h | |
| Registrations | TMap< FTopLevelAssetPath, TArray< FDataflowTemplateFolderRegistration > > | Dataflow/DataflowTemplateRegistry.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< FDataflowTemplateOption > GetTemplateOptions
(
const UClass* AssetClass, |
Build template options for the given asset class by scanning all registered folders (including those registered for parent classes, most-derived first). | Dataflow/DataflowTemplateRegistry.h | |
void RegisterTemplateAsset
(
const UClass* AssetClass, |
Register a single UDataflow asset as a template for the given asset class. | Dataflow/DataflowTemplateRegistry.h | |
void RegisterTemplateFolder
(
const UClass* AssetClass, |
Register a content folder to scan for UDataflow template assets for a given asset class. | Dataflow/DataflowTemplateRegistry.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FDataflowTemplateRegistry & Get() |
Dataflow/DataflowTemplateRegistry.h |