Hi.
tl;dr; CreatePropertyValueWidget doesn’t work for IPropertyHandle of FGameplayTag property
In IDetailCustomization::CustomizeDetails, I have the following code
const TSharedRef<IPropertyHandle> NewTagProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ULCAttributesDataAsset, NewTag));
NewTagProp->SetPropertyDisplayName(FText().FromString("Tag"));
const TSharedRef<IPropertyHandle> NewValueProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ULCAttributesDataAsset, NewValue));
NewValueProp->SetPropertyDisplayName(FText().FromString("Value"));
const TSharedRef<IPropertyHandle> NewCategoryProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ULCAttributesDataAsset, NewCategory));
NewCategoryProp->SetPropertyDisplayName(FText().FromString("Category"));
const TSharedRef<IPropertyHandle> LocomotionAttributesProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ULCAttributesDataAsset, Attributes.LocomotionAttributes));
LocomotionAttributesProp->SetPropertyDisplayName(FText().FromString("Locomotion"));
const TSharedRef<IPropertyHandle> AnimationAttributesProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ULCAttributesDataAsset, Attributes.AnimationAttributes));
AnimationAttributesProp->SetPropertyDisplayName(FText().FromString("Animation"));
Category.AddProperty(NewTagProp);
Category.AddProperty(NewValueProp);
Category.AddProperty(NewCategoryProp);
Category.AddCustomRow(ButtonText)
.WholeRowContent()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.HAlign(HAlign_Fill)
.VAlign(VAlign_Fill)
[
NewTagProp->CreatePropertyValueWidget()
]
+ SHorizontalBox::Slot()
.HAlign(HAlign_Fill)
.VAlign(VAlign_Fill)
[
NewValueProp->CreatePropertyValueWidget()
]
+ SHorizontalBox::Slot()
.HAlign(HAlign_Fill)
.VAlign(VAlign_Fill)
[
NewCategoryProp->CreatePropertyValueWidget()
]
+ SHorizontalBox::Slot()
.HAlign(HAlign_Fill)
.VAlign(VAlign_Fill)
[
SNew(SButton)
.Text(ButtonText)
//.OnClicked_Lambda(OnAddNewTag)
]
];
Everything works, however property value widget for FGameplayTag property isn’t showing up.
Is that something I’m missing or a bug?