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::bCreateWithFallbackArg, 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, the TVariant is parsed as a fallback type. FOperatorSettings are forwarded to CreatorType::CreateNew(...) if it is supported.
Parameters
| Name | Description |
|---|---|
| VariantParseType | A type which describes how to parse the InVariant argument. |
| VariantType | The expected underlying type stored in InVariant. |