Navigation
API > API/Plugins > API/Plugins/MetasoundEngineTest
Helper to make testing nodes simpler.
| Name | FNodeTestGraphBuilder |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngineTest/Public/NodeTestGraphBuilder.h |
| Include Path | #include "NodeTestGraphBuilder.h" |
Syntax
class FNodeTestGraphBuilder
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeTestGraphBuilder() |
NodeTestGraphBuilder.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AudioOutputNames | TArray< FVertexName > | NodeTestGraphBuilder.h | ||
| Document | FMetasoundFrontendDocument | NodeTestGraphBuilder.h | ||
| DocumentHandle | Frontend::FDocumentHandle | NodeTestGraphBuilder.h | ||
| RootGraph | Frontend::FGraphHandle | NodeTestGraphBuilder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
Frontend::FNodeHandle AddAndConnectConstructorInput
(
const Frontend::FNodeHandle& NodeToConnect, |
Adds a constructor input node to the graph and connects it as an input to the NodeToConnect | NodeTestGraphBuilder.h | |
Frontend::FNodeHandle AddAndConnectConstructorInput
(
const Frontend::FNodeHandle& NodeToConnect, |
Adds a constructor input node to the graph and connects it as an input to the NodeToConnect. | NodeTestGraphBuilder.h | |
| Adds a data reference input node with InputName and connects it to the node's input with the same name | NodeTestGraphBuilder.h | ||
bool AddAndConnectDataReferenceInputs
(
const Frontend::FNodeHandle& NodeHandle |
Adds data reference input nodes for each input on the NodeHandle and connects them to the inputs of the NodeHandle | NodeTestGraphBuilder.h | |
| Adds a data reference output node with OutputName and connects it to the node's output with the same name | NodeTestGraphBuilder.h | ||
Frontend::FNodeHandle AddConstructorInput
(
const FName& InputName, |
Add a constructor input node from the graph by name and type | NodeTestGraphBuilder.h | |
Frontend::FNodeHandle AddInput
(
const FName& InputName, |
Add an input node from the graph by name, type, and access type | NodeTestGraphBuilder.h | |
Frontend::FNodeHandle AddNode
(
const FNodeClassName& ClassName, |
Add a node to the graph | NodeTestGraphBuilder.h | |
| Add a data reference output node from the graph by name and type | NodeTestGraphBuilder.h | ||
TUniquePtr< FMetasoundGenerator > BuildGenerator
(
FSampleRate SampleRate, |
Call last to create a generator from the graph constructed using the other method. | NodeTestGraphBuilder.h | |
Frontend::FNodeHandle GetInput
(
const FName& Name |
Add an input node from the graph by name | NodeTestGraphBuilder.h | |
Frontend::FNodeHandle GetOutput
(
const FName& Name |
Add an output node from the graph by name | NodeTestGraphBuilder.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ConnectNodes
(
const Frontend::FNodeHandle& LeftNode, |
Connects an Input (Left) Node's output with name OutputName to another (Right) node's input with name InputName | NodeTestGraphBuilder.h | |
static bool ConnectNodes
(
const Frontend::FNodeHandle& LeftNode, |
Connects an Input (Left) Node's output with name OutputName to another (Right) node's input with name InputName | NodeTestGraphBuilder.h | |
static TUniquePtr< FMetasoundGenerator > MakeSingleNodeGraph
(
const FNodeClassName& ClassName, |
Helper that will add a single node, wire up the node's inputs and outputs, and hand back the graph's operator | NodeTestGraphBuilder.h |