Massive overhaul of the WingActorComponent system, can now edit component properties better, lots of bug fixes

This commit is contained in:
2026-03-27 05:16:49 -04:00
parent 3bbddde491
commit a5ab6b02f9
19 changed files with 380 additions and 222 deletions

View File

@@ -269,9 +269,9 @@ FString WingUtils::FormatName(const FBPInterfaceDescription &IFace)
return FormatName(IFace.Interface);
}
FString WingUtils::FormatName(const FWingActorComponent &Comp)
FString WingUtils::FormatName(const UWingComponentReference *Ref)
{
return SanitizeName(Comp.GetName());
return SanitizeName(Ref->VariableName);
}
FString WingUtils::FormatName(const UWidget *Widget)
@@ -473,6 +473,18 @@ TArray<UEdGraphNode*> WingUtils::AllNodes(UEdGraph *Graph)
return Result;
}
TArray<UBlueprint*> WingUtils::GetAncestorBlueprints(UBlueprint *BP, bool OldestFirst)
{
TArray<UBlueprint*> Blueprints;
for (UBlueprint* WalkBP = BP; WalkBP; )
{
Blueprints.Add(WalkBP);
WalkBP = UBlueprint::GetBlueprintFromClass(WalkBP->ParentClass);
}
if (OldestFirst) Algo::Reverse(Blueprints);
return Blueprints;
}
// ============================================================
// Material helpers
// ============================================================