Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
Description
Registers a data type with the MetaSound Frontend. This allows the data type to be used in Input, Output, Send and Receive nodes by informing the Frontend how to instantiate an instance.
| Name | Metasound::Frontend::RegisterDataType |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundDataTypeRegistrationMacro.h |
| Include Path | #include "MetasoundDataTypeRegistrationMacro.h" |
namespace Metasound
{
namespace Frontend
{
template<typename TDataType, ELiteralType PreferredArgType, typename UClassToUse>
bool Metasound::Frontend::RegisterDataType()
}
}
True on success, false on failure.
Parameters
| Name | Remarks |
|---|---|
| TDataType | The data type to register. |
| PreferredArgType | The preferred constructor argument type to use when creating an instance of the data type. |
| UClassToUse | The preferred UObject class to use when constructing from an Audio::IProxyDataPtr. If the type is not constructible with an Audio::IProxyDataPtr, then this should be void. |