UMaterialInstanceDynamic::InitializeScalarParameterAndGetIndex

Use this function to set an initial value and fetch the index for use in SetScalarParameterByIndex.