Module |
|
Header |
/Engine/Source/Editor/PropertyEditor/Public/PropertyCustomizationHelpers.h |
Include |
#include "PropertyCustomizationHelpers.h" |
Source |
/Engine/Source/Editor/PropertyEditor/Private/PropertyCustomizationHelpers.cpp |
namespace PropertyCustomizationHelpers
{
TSharedRef< SWidget > PropertyCustomizationHelpers::MakePropertyComboBox
(
const TSharedPtr< IPropertyHandle > & InPropertyHandle,
FOnGetPropertyComboBoxStrings OnGetStrings,
FOnGetPropertyComboBoxValue OnGetValue,
FOnPropertyComboBoxValueSelected OnValueSelected
)
}
Build a combo button that you bind to a Name/String/Enum property or display using general delegates
Parameter |
Description |
---|---|
InPropertyHandle |
If set, will bind to a specific property. If this is null, all 3 delegates must be set |
OnGetStrings |
Delegate that will generate the list of possible strings. If not set will generate using property handle |
OnGetValue |
Delegate that is called to get the current string value to display. If not set will generate using property handle |
OnValueSelected |
Delegate called when a string is selected. If not set will set the property handle |