diff --git a/Source/VaRestEditorPlugin/Private/VaRest_BreakJson.cpp b/Source/VaRestEditorPlugin/Private/VaRest_BreakJson.cpp index d7633d90..49100dc4 100644 --- a/Source/VaRestEditorPlugin/Private/VaRest_BreakJson.cpp +++ b/Source/VaRestEditorPlugin/Private/VaRest_BreakJson.cpp @@ -196,7 +196,7 @@ void UVaRest_BreakJson::AllocateDefaultPins() const UEdGraphSchema_K2* K2Schema = GetDefault(); UClass *Class = Cast(StaticLoadObject(UClass::StaticClass(), NULL, TEXT("class'VaRestPlugin.VaRestJsonObject'"))); - UEdGraphPin* Pin = CreatePin(EGPD_Input, K2Schema->PC_Object, TEXT(""), Class, false, false, TEXT("Target")); + UEdGraphPin* Pin = CreatePin(EGPD_Input, K2Schema->PC_Object, TEXT(""), Class, TEXT("Target")); #if ENGINE_MINOR_VERSION >= 17 K2Schema->SetPinAutogeneratedDefaultValueBasedOnType(Pin); @@ -299,7 +299,9 @@ void UVaRest_BreakJson::CreateProjectionPins(UEdGraphPin *Source) break; } - UEdGraphPin *OutputPin = CreatePin(EGPD_Output, Type, TEXT(""), Subtype, (*it).bIsArray, false, (*it).Name); + UEdGraphNode::FCreatePinParams OutputPinParams; + OutputPinParams.ContainerType = (*it).bIsArray ? EPinContainerType::Array : EPinContainerType::None; + UEdGraphPin *OutputPin = CreatePin(EGPD_Output, Type, TEXT(""), Subtype, FName(*(*it).Name), OutputPinParams); } } @@ -488,7 +490,7 @@ void UVaRest_MakeJson::AllocateDefaultPins() const UEdGraphSchema_K2* K2Schema = GetDefault(); UClass *Class = Cast(StaticLoadObject(UClass::StaticClass(), NULL, TEXT("class'VaRestPlugin.VaRestJsonObject'"))); - UEdGraphPin* Pin = CreatePin(EGPD_Output, K2Schema->PC_Object, TEXT(""), Class, false, false, TEXT("Target")); + UEdGraphPin* Pin = CreatePin(EGPD_Output, K2Schema->PC_Object, TEXT(""), Class, TEXT("Target")); #if ENGINE_MINOR_VERSION >= 17 K2Schema->SetPinAutogeneratedDefaultValueBasedOnType(Pin); @@ -586,7 +588,9 @@ void UVaRest_MakeJson::CreateProjectionPins(UEdGraphPin *Source) break; } - UEdGraphPin *InputPin = CreatePin(EGPD_Input, Type, TEXT(""), Subtype, (*it).bIsArray, false, (*it).Name); + UEdGraphNode::FCreatePinParams InputPinParams; + InputPinParams.ContainerType = (*it).bIsArray ? EPinContainerType::Array : EPinContainerType::None; + UEdGraphPin *InputPin = CreatePin(EGPD_Input, Type, TEXT(""), Subtype, FName(*(*it).Name), InputPinParams); InputPin->SetSavePinIfOrphaned(false); } }