in short, just trying to make a helper function to skip the MakeInstancedStruct Node?
here’s my current attempt… well straight guess
void UTRPGDataObjectBase::AddPropertyGeneric(FGameplayTag PropertyTag, const int32& StructData)
{
checkNoEntry();
}
DEFINE_FUNCTION(UTRPGDataObjectBase::execAddPropertyGeneric)
{
P_GET_STRUCT(FGameplayTag, PropertyTag);
// Read wildcard Value input.
Stack.MostRecentPropertyAddress = nullptr;
Stack.MostRecentPropertyContainer = nullptr;
Stack.StepCompiledIn<FStructProperty>(nullptr);
const FStructProperty* ValueProp = CastField<FStructProperty>(Stack.MostRecentProperty);
void* ValuePtr = Stack.MostRecentPropertyAddress;
P_FINISH;
P_NATIVE_BEGIN;
FInstancedStruct Instanced;
Instanced.InitializeAs(ValueProp->Struct);
ValueProp->Struct->CopyScriptStruct(ValuePtr, Instanced.GetMemory());
P_THIS->AddProperty(PropertyTag, Instanced);
P_NATIVE_END;
}