Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore > API/Plugins/MetasoundGraphCore/TDataVariantFactoryInternal > API/Plugins/MetasoundGraphCore/TDataVariantFactoryInternal/CreateNewFromVariant
References
| Module | MetasoundGraphCore |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundDataFactory.h |
| Include | #include "MetasoundDataFactory.h" |
template<typename VariantParseType, typename VariantType, typename std::enable_if< VariantParseType::bCannotForwardToConstructor, int >::type>
static auto CreateNewFromVariant
&40;
const FOperatorSettings & InSettings,
const VariantType & InVariant
&41;
Remarks
Create a new object using FOperatorSettings and TVariant.
Note: In this implementation signals a static error as not possible ways to construct that underlying object could be found.
Parameters
| Name | Description |
|---|---|
| VariantParseType | A type which describes how to parse the InVariant argument. |
| VariantType | The expected underlying type stored in InVariant. |