Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
References
| Module | MetasoundFrontend |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundFrontendDocumentBuilder.h |
| Include | #include "MetasoundFrontendDocumentBuilder.h" |
Syntax
USTRUCT&40;&41;
struct FMetaSoundFrontendDocumentBuilder
Remarks
Builder used to support dynamically generating MetaSound documents at runtime. Builder contains caches that speed up common search and modification operations on a given document, which may result in slower performance on construction, but faster manipulation of its managed document. The builder's managed copy of a document is expected to not be modified by any external system to avoid cache becoming stale.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Exists only to make UObject reflection happy. | |||
FMetaSoundFrontendDocumentBuilder
(
TScriptInterface< IMetaSoundDocumentInterface > InDocumentInterface |
|||
FMetaSoundFrontendDocumentBuilder
(
TScriptInterface< IMetaSoundDocumentInterface > InDocumentInterface, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FMetasoundFrontendClass * | AddDependency
(
const FMetasoundFrontendClass& InClass |
||
| void | AddEdge
(
FMetasoundFrontendEdge&& InNewEdge |
||
| bool | AddEdgesByNodeClassInterfaceBindings
(
const FGuid& InFromNodeID, |
||
| bool | AddEdgesFromMatchingInterfaceNodeInputsToGraphInputs
(
const FGuid& InNodeID, |
||
| bool | AddEdgesFromMatchingInterfaceNodeOutputsToGraphOutputs
(
const FGuid& InNodeID, |
||
| const FMetasoundFrontendNode * | AddGraphInput
(
const FMetasoundFrontendClassInput& InClassInput |
||
| const FMetasoundFrontendNode * | AddGraphNode
(
const FMetasoundFrontendGraphClass& InClass, |
||
| const FMetasoundFrontendNode * | AddGraphOutput
(
const FMetasoundFrontendClassOutput& InClassOutput |
||
| bool | AddInterface
(
FName InterfaceName |
||
| bool | AddNamedEdges
(
const TSet< Metasound::Frontend::FNamedEdge >& ConnectionsToMake, |
||
| const FMetasoundFrontendNode * | AddNodeByClassName
(
const FMetasoundFrontendClassName& InClassName, |
||
| bool | CanAddEdge
(
const FMetasoundFrontendEdge& InEdge |
Returns whether or not the given edge can be added, which requires that its input is not already connected and the edge is valid (see function 'IsValidEdge'). | |
| void | ClearGraph () |
||
| bool | ContainsEdge
(
const FMetasoundFrontendEdge& InEdge |
||
| bool | ContainsNode
(
const FGuid& InNodeID |
||
| bool | |||
| bool | ConvertToPreset
(
const FMetasoundFrontendDocument& InReferencedDocument |
||
| bool | FindDeclaredInterfaces
(
const FMetasoundFrontendDocument& InDocument, |
||
| bool | FindDeclaredInterfaces
(
TArray< const Metasound::Frontend::IInterfaceRegistryEntry* >& OutInterfaces |
||
| const FMetasoundFrontendClass * | FindDependency
(
const FGuid& InClassID |
||
| const FMetasoundFrontendClass * | FindDependency
(
const FMetasoundFrontendClassMetadata& InMetadata |
||
| const FMetasoundFrontendClassInput * | FindGraphInput
(
FName InputName |
||
| const FMetasoundFrontendNode * | FindGraphInputNode
(
FName InputName |
||
| const FMetasoundFrontendClassOutput * | FindGraphOutput
(
FName OutputName |
||
| const FMetasoundFrontendNode * | FindGraphOutputNode
(
FName OutputName |
||
| bool | FindInterfaceInputNodes
(
FName InterfaceName, |
||
| bool | FindInterfaceOutputNodes
(
FName InterfaceName, |
||
| const FMetasoundFrontendNode * | |||
| const FMetasoundFrontendVertex * | FindNodeInput
(
const FGuid& InNodeID, |
||
| const FMetasoundFrontendVertex * | FindNodeInput
(
const FGuid& InNodeID, |
||
| TArray< const FMetasoundFrontendVertex * > | FindNodeInputs
(
const FGuid& InNodeID, |
||
| TArray< const FMetasoundFrontendVertex * > | FindNodeInputsConnectedToNodeOutput
(
const FGuid& InOutputNodeID, |
||
| const FMetasoundFrontendVertex * | FindNodeOutput
(
const FGuid& InNodeID, |
||
| const FMetasoundFrontendVertex * | FindNodeOutput
(
const FGuid& InNodeID, |
||
| const FMetasoundFrontendVertex * | FindNodeOutputConnectedToNodeInput
(
const FGuid& InInputNodeID, |
||
| TArray< const FMetasoundFrontendVertex * > | FindNodeOutputs
(
const FGuid& InNodeID, |
||
| const FMetasoundFrontendDocument & | GetDocument () |
||
| const Metasound::Frontend::FDocumentModifyDelegates & | |||
| const IMetaSoundDocumentInterface & | |||
| const FMetasoundFrontendLiteral * | GetNodeInputClassDefault
(
const FGuid& InNodeID, |
||
| const FMetasoundFrontendLiteral * | GetNodeInputDefault
(
const FGuid& InNodeID, |
||
| void | InitDocument () |
||
| void | InitGraphClassMetadata
(
FMetasoundFrontendClassMetadata& InOutMetadata, |
Initializes GraphClass Metadata, optionally resetting the version back to 1.0 and/or creating a unique class name if a name is not provided. | |
| void | |||
| bool | IsDependencyReferenced
(
const FGuid& InClassID |
||
| bool | IsInterfaceDeclared
(
const FMetasoundFrontendVersion& InInterfaceVersion |
||
| bool | IsInterfaceDeclared
(
FName InInterfaceName |
||
| bool | IsNodeInputConnected
(
const FGuid& InNodeID, |
||
| bool | IsNodeOutputConnected
(
const FGuid& InNodeID, |
||
| bool | IsPreset () |
||
| Metasound::Frontend::EInvalidEdgeReason | IsValidEdge
(
const FMetasoundFrontendEdge& InEdge |
Returns whether or not the given edge is valid (i.e. represents an input and output that equate in data and access types) or malformed. | |
| bool | ModifyInterfaces
(
Metasound::Frontend::FModifyInterfaceOptions&& InOptions |
||
| void | ReloadCache () |
Primarily used by editor transaction stack to avoid corruption when object is changed outside of the builder API. | |
| bool | RemoveDependency
(
EMetasoundFrontendClassType ClassType, |
||
| bool | RemoveDependency
(
const FGuid& InClassID |
||
| bool | RemoveEdge
(
const FMetasoundFrontendEdge& EdgeToRemove |
||
| bool | RemoveEdgesByNodeClassInterfaceBindings
(
const FGuid& InOutputNodeID, |
||
| bool | RemoveEdgesFromNodeOutput
(
const FGuid& InNodeID, |
||
| bool | RemoveEdgeToNodeInput
(
const FGuid& InNodeID, |
||
| bool | RemoveGraphInput
(
FName InInputName |
||
| bool | RemoveGraphOutput
(
FName InOutputName |
||
| bool | RemoveInterface
(
FName InName |
||
| bool | RemoveNamedEdges
(
const TSet< Metasound::Frontend::FNamedEdge >& InNamedEdgesToRemove, |
||
| bool | RemoveNode
(
const FGuid& InNodeID |
||
| bool | RemoveNodeInputDefault
(
const FGuid& InNodeID, |
||
| bool | |||
| bool | RenameRootGraphClass
(
const FMetasoundFrontendClassName& InName |
||
| void | |||
| bool | SetGraphInputDefault
(
FName InputName, |
||
| bool | SetNodeInputDefault
(
const FGuid& InNodeID, |
||
| bool | SetNodeLocation
(
const FGuid& InNodeID, |
Sets the editor-only node location of a node with the given ID to the provided location. | |
| bool | SwapGraphInput
(
const FMetasoundFrontendClassVertex& InExistingInputVertex, |
||
| bool | SwapGraphOutput
(
const FMetasoundFrontendClassVertex& InExistingOutputVertex, |
||
| bool | UpdateDependencyClassNames
(
const TMap< FMetasoundFrontendClassName, FMetasoundFrontendClassName >& OldToNewReferencedClassName... |
Typedefs
| Name | Description |
|---|---|
| FFinalizeNodeFunctionRef |