Start cleaning WingReferences to be *just* the reference type and no methods

This commit is contained in:
2026-04-07 23:41:04 -04:00
parent 9382ed85f8
commit 9c3fab26c4
8 changed files with 30 additions and 42 deletions

View File

@@ -490,6 +490,24 @@ UObject *WingUtils::GetGeneratedCDO(UBlueprint *BP)
return BP->GeneratedClass->GetDefaultObject();
}
// ============================================================
// Graph Pin Helpers
// ============================================================
UEdGraphPin* WingUtils::CheckGetPin(UEdGraphNode* Node, FName PinName, WingOut Errors)
{
for (UEdGraphPin* Pin : Node->Pins)
{
if (Pin && Pin->GetFName() == PinName)
{
return Pin;
}
}
Errors.Printf(TEXT("ERROR: Pin '%s' no longer exists on node '%s'\n"),
*WingUtils::ExternalizeID(PinName), *WingUtils::FormatName(Node));
return nullptr;
}
// ============================================================
// Editor helpers
// ============================================================