PropertyCustomizationHelpers::MakePropertyComboBox

Build a combo button that you bind to a Name/String/Enum property or display using general delegates

Windows
MacOS
Linux

References

Module

PropertyEditor

Header

/Engine/Source/Editor/PropertyEditor/Public/PropertyCustomizationHelpers.h

Include

#include "PropertyCustomizationHelpers.h"

Source

/Engine/Source/Editor/PropertyEditor/Private/PropertyCustomizationHelpers.cpp

Syntax

namespace PropertyCustomizationHelpers
{
    TSharedRef< SWidget > PropertyCustomizationHelpers::MakePropertyComboBox
    (
        const TSharedPtr< IPropertyHandle > & InPropertyHandle,
        FOnGetPropertyComboBoxStrings OnGetStrings,
        FOnGetPropertyComboBoxValue OnGetValue,
        FOnPropertyComboBoxValueSelected OnValueSelected
    )
}

Remarks

Build a combo button that you bind to a Name/String/Enum property or display using general delegates

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss