Navigation
API > API/Editor > API/Editor/BlueprintGraph > API/Editor/BlueprintGraph/UK2Node
Description
If there's a type mismatch between old and new pins during rewiring and the old pin has a default value, then we'll need a way to keep the old default value and convert it to the new type. This function achieves that by inserting both a literal and a conversion node. The literal node will use the original default value.
Returns true if the conversion was successful.
| Name | TryInsertDefaultValueConversionNode |
| Type | function |
| Header File | /Engine/Source/Editor/BlueprintGraph/Classes/K2Node.h |
| Include Path | #include "K2Node.h" |
| Source | /Engine/Source/Editor/BlueprintGraph/Private/K2Node.cpp |
bool TryInsertDefaultValueConversionNode
(
const UEdGraphPin & OldPin,
UEdGraphPin & NewPin
) const