Navigation
API > API/Plugins > API/Plugins/MetasoundEngine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMetaSoundBuilderBase
- UMetaSoundPatchBuilder
- UMetaSoundSourceBuilder
References
| Module | MetasoundEngine |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundBuilderSubsystem.h |
| Include | #include "MetasoundBuilderSubsystem.h" |
Syntax
UCLASS&40;Abstract&41;
class UMetaSoundBuilderBase : public UObject
Remarks
Base implementation of MetaSound builder
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsAttached | If true, builder is attached to an existing asset (directly making changes to its document). | |
| FMetaSoundFrontendDocumentBuilder | Builder |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMetaSoundBuilderNodeOutputHandle | AddGraphInputNode
(
FName Name, |
Adds a graph input node with the given name, DataType, and sets the graph input to default value. | |
| FMetaSoundBuilderNodeInputHandle | AddGraphOutputNode
(
FName Name, |
Adds a graph output node with the given name, DataType, and sets output node's input to default value. | |
| void | AddInterface
(
FName InterfaceName, |
Adds an interface registered with the given name to the graph, adding associated input and output nodes. | |
| FMetaSoundNodeHandle | AddNode
(
const TScriptInterface< IMetaSoundDocumentInterface >& NodeClass, |
Adds a node to the graph using the provided MetaSound asset as its defining NodeClass. | |
| FMetaSoundNodeHandle | AddNodeByClassName
(
const FMetasoundFrontendClassName& ClassName, |
Adds node referencing the highest native class version of the given class name to the document. | |
| TScriptInterface< IMetaSoundDocumentInterface > | Build
(
UObject* Parent, |
||
| UClassType & | BuildInternal
(
UObject* Parent, |
Runs build, conforming the document and corresponding object data on a MetaSound UObject to that managed by this builder. | |
| TArray< FMetaSoundBuilderNodeOutputHandle > | ConnectNodeInputsToMatchingGraphInterfaceInputs
(
const FMetaSoundNodeHandle& NodeHandle, |
Connects a given node's inputs to all graph inputs for shared interfaces implemented on both the node's referenced class and the builder's MetaSound graph. Returns outputs of connected input nodes. | |
| void | ConnectNodeInputToGraphInput
(
FName GraphInputName, |
Connects a given node input to the graph input with the given name. | |
| TArray< FMetaSoundBuilderNodeInputHandle > | ConnectNodeOutputsToMatchingGraphInterfaceOutputs
(
const FMetaSoundNodeHandle& NodeHandle, |
Connects a given node's outputs to all graph outputs for shared interfaces implemented on both the node's referenced class and the builder's MetaSound graph. Returns inputs of connected output nodes. | |
| void | ConnectNodeOutputToGraphOutput
(
FName GraphOutputName, |
Connects a given node output to the graph output with the given name. | |
| void | ConnectNodes
(
const FMetaSoundBuilderNodeOutputHandle& NodeOutputHandle, |
Connects node output to a node input. | |
| void | ConnectNodesByInterfaceBindings
(
const FMetaSoundNodeHandle& FromNodeHandle, |
Connects two nodes using defined MetaSound Interface Bindings registered with the MetaSound Interface registry. | |
| bool | ContainsNode
(
const FMetaSoundNodeHandle& Node |
Returns whether node exists. | |
| bool | ContainsNodeInput
(
const FMetaSoundBuilderNodeInputHandle& Input |
Returns whether node input exists. | |
| bool | ContainsNodeOutput
(
const FMetaSoundBuilderNodeOutputHandle& Output |
Returns whether node output exists. | |
| void | ConvertFromPreset
(
EMetaSoundBuilderResult& OutResult |
Converts this preset to a fully accessible MetaSound; sets result to succeeded if it was converted successfully and failed if it was not. | |
| void | ConvertToPreset
(
const TScriptInterface< IMetaSoundDocumentInterface >& ReferencedNodeClass, |
Convert this builder to a MetaSound source preset with the given referenced source builder. | |
| UMetaSoundBuilderDocument * | Constructs a transient UMetaSoundBuilderDocument to be acted upon by this builder instance. | ||
| void | DisconnectNodeInput
(
const FMetaSoundBuilderNodeInputHandle& NodeInputHandle, |
Removes connection to a given node input. Returns success if connection was removed, failed if not. | |
| void | DisconnectNodeOutput
(
const FMetaSoundBuilderNodeOutputHandle& NodeOutputHandle, |
Removes all connections from a given node output. Returns success if all connections were removed, failed if not. | |
| void | DisconnectNodes
(
const FMetaSoundBuilderNodeOutputHandle& NodeOutputHandle, |
Disconnects node output to a node input. Returns success if connection was removed, failed if not. | |
| void | DisconnectNodesByInterfaceBindings
(
const FMetaSoundNodeHandle& FromNodeHandle, |
Disconnects two nodes using defined MetaSound Interface Bindings registered with the MetaSound Interface registry. | |
| FMetaSoundNodeHandle | FindGraphInputNode
(
FName InputName, |
Returns graph input node by the given name if it exists, or an invalid handle if not found. | |
| FMetaSoundNodeHandle | FindGraphOutputNode
(
FName OutputName, |
Returns graph output node by the given name if it exists, or an invalid handle if not found. | |
| TArray< FMetaSoundNodeHandle > | FindInterfaceInputNodes
(
FName InterfaceName, |
||
| TArray< FMetaSoundNodeHandle > | FindInterfaceOutputNodes
(
FName InterfaceName, |
||
| FMetasoundFrontendVersion | FindNodeClassVersion
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns output's parent node if the input is valid, otherwise returns invalid node handle. | |
| FMetaSoundBuilderNodeInputHandle | FindNodeInputByName
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns node input by the given name if it exists, or an invalid handle if not found. | |
| FMetaSoundNodeHandle | FindNodeInputParent
(
const FMetaSoundBuilderNodeInputHandle& InputHandle, |
Returns input's parent node if the input is valid, otherwise returns invalid node handle. | |
| TArray< FMetaSoundBuilderNodeInputHandle > | FindNodeInputs
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns node output by the given name. | |
| TArray< FMetaSoundBuilderNodeInputHandle > | FindNodeInputsByDataType
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns node inputs by the given DataType (ex. "Audio", "Trigger", "String", "Bool", "Float", "Int32", etc.). | |
| FMetaSoundBuilderNodeOutputHandle | FindNodeOutputByName
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns node output by the given name. | |
| FMetaSoundNodeHandle | FindNodeOutputParent
(
const FMetaSoundBuilderNodeOutputHandle& OutputHandle, |
Returns output's parent node if the input is valid, otherwise returns invalid node handle. | |
| TArray< FMetaSoundBuilderNodeOutputHandle > | FindNodeOutputs
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns all node outputs. | |
| TArray< FMetaSoundBuilderNodeOutputHandle > | FindNodeOutputsByDataType
(
const FMetaSoundNodeHandle& NodeHandle, |
Returns node outputs by the given DataType (ex. "Audio", "Trigger", "String", "Bool", "Float", "Int32", etc.). | |
| const UClass & | Returns the base MetaSound UClass the builder is operating on (ex. MetaSoundSource, MetaSoundPatch, etc. not to be confused with the underlying document builder's MetaSound class type) | ||
| const FMetaSoundFrontendDocumentBuilder & | |||
| FMetasoundFrontendLiteral | GetNodeInputClassDefault
(
const FMetaSoundBuilderNodeInputHandle& InputHandle, |
Returns node input's class literal value if set, otherwise fails and returns default literal. | |
| void | GetNodeInputData
(
const FMetaSoundBuilderNodeInputHandle& InputHandle, |
Returns node input's data if valid (including things like name and datatype). | |
| FMetasoundFrontendLiteral | GetNodeInputDefault
(
const FMetaSoundBuilderNodeInputHandle& InputHandle, |
Returns node input's literal value if set on graph, otherwise fails and returns default literal. | |
| void | GetNodeOutputData
(
const FMetaSoundBuilderNodeOutputHandle& OutputHandle, |
Returns node output's data if valid (including things like name and datatype). | |
| UObject * | Return the asset referenced by this preset builder. Returns nullptr if the builder is not a preset. | ||
| FMetasoundFrontendClassName | Returns the document's root graph class name. | ||
| void | |||
| void | Initializes and ensures all nodes have a position (required prior to exporting to an asset if expected to be viewed in the editor). | ||
| bool | InterfaceIsDeclared
(
FName InterfaceName |
Returns if a given interface is declared. | |
| bool | IsPreset () |
Returns whether this is a preset. | |
| bool | NodeInputIsConnected
(
const FMetaSoundBuilderNodeInputHandle& InputHandle |
Returns if a given node input has connections. | |
| bool | NodeOutputIsConnected
(
const FMetaSoundBuilderNodeOutputHandle& OutputHandle |
Returns if a given node output is connected. | |
| bool | NodesAreConnected
(
const FMetaSoundBuilderNodeOutputHandle& OutputHandle, |
Returns if a given node output and node input are connected. | |
| void | ReloadCache () |
Primarily used by editor transaction stack to avoid corruption when object is changed outside of the builder API. | |
| void | RemoveGraphInput
(
FName Name, |
Removes graph input if it exists; sets result to succeeded if it was removed and failed if it was not. | |
| void | RemoveGraphOutput
(
FName Name, |
Removes graph output if it exists; sets result to succeeded if it was removed and failed if it was not. | |
| void | RemoveInterface
(
FName InterfaceName, |
Removes the interface with the given name from the builder's MetaSound. | |
| void | RemoveNode
(
const FMetaSoundNodeHandle& NodeHandle, |
Removes node and any associated connections from the builder's MetaSound. | |
| void | RemoveNodeInputDefault
(
const FMetaSoundBuilderNodeInputHandle& InputHandle, |
Removes node input literal default if set, reverting the value to be whatever the node class defaults the value to. | |
| void | RenameRootGraphClass
(
const FMetasoundFrontendClassName& InName |
Rename the document's root graph class with a guid and optional namespace and variant. | |
| void | Sets the author of the MetaSound. | ||
| void | SetGraphInputDefault
(
FName InputName, |
Sets the input node's default value, overriding the default provided by the referenced graph if the graph is a preset. | |
| void | SetNodeInputDefault
(
const FMetaSoundBuilderNodeInputHandle& NodeInputHandle, |
Sets the node's input default value (used if no connection to the given node input is present) | |
| void | SetNodeLocation
(
const FMetaSoundNodeHandle& InNodeHandle, |
||
| void | UpdateDependencyClassNames
(
const TMap< FMetasoundFrontendClassName, FMetasoundFrontendClassName >& OldToNewReferencedClassName... |
Update dependency class names given a map of old to new referenced class names. |