Navigation
API > API/Plugins > API/Plugins/PCGEditor > API/Plugins/PCGEditor/Details
Inheritance Hierarchy
- TSharedFromThis< IPropertyTypeCustomization >
- IPropertyTypeCustomization
- FEnumSelectorDetails
References
| Module | PCGEditor |
| Header | /Engine/Plugins/PCG/Source/PCGEditor/Public/Details/EnumSelectorDetails.h |
| Include | #include "Details/EnumSelectorDetails.h" |
Syntax
class FEnumSelectorDetails : public IPropertyTypeCustomization
Remarks
Property type customization for an enum selector allowing the user to easily select from a list of available enum classes and then also select a value from that class's options.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FString > | ClassSelection | ||
| TArray< TSharedPtr< FString > > | EnumClassSourceOptions | ||
| TSharedPtr< SComboBox< FName > > | EnumValueComboBox | ||
| TArray< FName > | EnumValueSourceOptions | ||
| TMap< TSharedPtr< FString >, UEnum * > | NameStringToEnumClassMap | ||
| TSharedPtr< IPropertyHandle > | PropertyHandle | ||
| FName | ValueSelection |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FEnumSelector * | |||
| const FEnumSelector * | |||
| UEnum * | Helper to convert the drop down selection into an enum class. | ||
| FText | Gets the display text for the currently selected enum class. | ||
| int64 | Helper to convert the drop down selection into an enum value. | ||
| FText | Gets the display text for the currently selected enum value. | ||
| void | |||
| void | |||
| EVisibility | Returns true only if the selector and enum class are both valid, false otherwise. | ||
| TSharedRef< IPropertyTypeCustomization > | MakeInstance () |
||
| void | OnClassComboSelectionChanged
(
TSharedPtr< FString > InSelectedItem, |
||
| void | OnValueComboSelectionChanged
(
FName InSelectedItem, |
||
| void | Reloads the enum values associated with an enum class, once a different enum class has been selected. | ||
| void | SetSelectorEnumClass
(
UEnum* Class |
Sets the selector enum class and calls the property update functions. | |
| void | SetSelectorEnumValue
(
const int64 Value |
Sets the selector enum value and calls the property update functions. | |
| FText | StripEnumClassName
(
FName EnumValueName |
~End IPropertyTypeCustomization interface Strips the enum class from the enum value name: EnumClass::EnumValue -> EnumValue. | |
| void | UpdateEnumClass
(
const TSharedPtr< FString >& EnumString |
Updates the enum class from the SSearchableComboBox item type. | |
| void | UpdateEnumValue
(
FName ValueName |
Updates the enum value from the SComboBox item type. |
Overridden from IPropertyTypeCustomization
| Type | Name | Description | |
|---|---|---|---|
| void | CustomizeChildren
(
TSharedRef< IPropertyHandle > InPropertyHandle, |
Called when the children of the property should be customized or extra rows added | |
| void | CustomizeHeader
(
TSharedRef< IPropertyHandle > InPropertyHandle, |
~Begin IPropertyTypeCustomization interface |