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::bCreateArrayElementsWithArg, 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 InVariant object is an array of args where each array element is the constructor args for one resulting array element. Constructor args are forwarded to the element data type and the resulting object is placed in the output array.
Parameters
| Name | Description |
|---|---|
| VariantParseType | A type which describes how to parse the InVariant argument. |
| VariantType | The expected underlying type stored in InVariant. |