Migrating toward WingPropHandle

This commit is contained in:
2026-04-03 17:05:48 -04:00
parent a0c5a56476
commit daa9216ddf
4 changed files with 113 additions and 8 deletions

View File

@@ -56,9 +56,6 @@
// Name sanitization
// ============================================================
FName WingUtils::GetFName(const FWingProperty &Prop) { return Prop.Prop->GetFName(); }
FName WingUtils::GetFName(const TSharedPtr<IPropertyHandle> &H) { return H->GetProperty()->GetFName(); }
FString WingUtils::ExternalizeID(FName Name)
{
return WingTokenizer::ExternalizeID(Name);
@@ -272,6 +269,17 @@ FString WingUtils::FormatName(const UWidget *Widget)
return ExternalizeID(Widget->GetFName());
}
FName WingUtils::GetFName(const FWingProperty &Prop)
{
return Prop.Prop->GetFName();
}
FName WingUtils::GetFName(const TSharedPtr<IPropertyHandle> &H)
{
return H->GetProperty()->GetFName();
}
// ============================================================
// Formatting other things
// ============================================================