Widget slot properties are now shown

This commit is contained in:
2026-03-23 14:10:26 -04:00
parent 2a064f3666
commit 92b03d376d
3 changed files with 20 additions and 3 deletions

View File

@@ -5,6 +5,8 @@
#include "Engine/Blueprint.h"
#include "Engine/SCS_Node.h"
#include "MaterialGraph/MaterialGraphNode.h"
#include "Components/Widget.h"
#include "Components/PanelSlot.h"
#include "EdGraph/EdGraphPin.h"
#include "UObject/EnumProperty.h"
@@ -194,6 +196,17 @@ TArray<FWingProperty> FWingProperty::GetAll(UObject* Obj, EPropertyFlags Flags)
}
}
// If it's a Widget, hide the slot property, and add the
// slot properties.
if (UWidget* Widget = Cast<UWidget>(Obj))
{
FWingProperty::Remove(Result, TEXT("Slot"));
if (UPanelSlot* Slot = Widget->Slot)
{
Collect(Slot->GetClass(), Slot, Result, Flags);
}
}
return Result;
}