Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
Helper to determine whether an Reset(...) function exists.
Some nodes have an Execute() call without an Reset(...) call because Reset(...) was introduced after several MetaSound releases. In order allow operators to compile, we make the Intiailize(...) function optional for subclasses of TExecutableOperator. This adapter determines whether it Reset(...) exists or not.
Note: This helper must be instantiated inside the functions and cannot be part of the `TExecutableOperator
| Name | TResetFunctionAdapter |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundExecutableOperator.h |
| Include Path | #include "MetasoundExecutableOperator.h" |
Syntax
template<typename OperatorType>
struct TResetFunctionAdapter
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static IOperator::FResetFunction GetResetFunction() |
Returns an IOperator::FResetFunction if the OperatorType has a Reset(...) class member function. | MetasoundExecutableOperator.h | |
static void ResetFunction
(
IOperator* InOperator, |
MetasoundExecutableOperator.h |