Files
Rob Gay ca46591eff Boilerplate for empty Metasound Graph Implementation & editor module support
#rb phil.popp
#jira UEAU-476

[CL 13864364 by Rob Gay in ue5-main branch]
2020-07-15 12:59:38 -04:00

20 lines
596 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SMetasoundPalette.h"
#include "MetasoundEditorGraphSchema.h"
void SMetasoundPalette::Construct(const FArguments& InArgs)
{
SGraphPalette::Construct(SGraphPalette::FArguments().AutoExpandActionMenu(true));
}
void SMetasoundPalette::CollectAllActions(FGraphActionListBuilderBase& OutAllActions)
{
if (const UMetasoundEditorGraphSchema* Schema = GetDefault<UMetasoundEditorGraphSchema>())
{
FGraphActionMenuBuilder ActionMenuBuilder;
Schema->GetPaletteActions(ActionMenuBuilder);
OutAllActions.Append(ActionMenuBuilder);
}
}