I have a Details Customization that uses a Custom Slated widget to render inline a selected item in one of it’s arrays.
The Slate widget takes the DetailLayout as a parameter.
I’m able to get the property handle for the selected item in the array however when I try to use GetChildHandle on the handle it fails to return the property on the selected object.
Stepping through the code it seems there are no child nodes thous it ends up returning null.
Here Code I’m using
TSharedPtr ObjectiveHandle = DetailLayout.GetProperty(GET_MEMBER_NAME_CHECKED(UQuest, Objectives))->AsArray();
if(!ObjectiveHandle.IsValid())
{
return;
}
AmountHandle = ObjectiveHandle->GetElement(ObjectiveIndex);
if(!AmountHandle.IsValid() || !AmountHandle->IsValidHandle())
{
return;
}
//now we can grab the amount handle.
AmountHandle = AmountHandle->GetChildHandle(TEXT("Amount"));
When i just use the Objective Object I get and generate it’s widget instead I get like an instance browser fro it.
I’m not sure if this is the way to go or could I possible use the Normal UObject based Objective Class to get a property handle to the amount UProperty I haven’t been find code that does this.