Navigation
API > API/Editor > API/Editor/DetailCustomizations
Inheritance Hierarchy
- TSharedFromThis
- IPropertyTypeCustomization
- FKeyStructCustomization
References
| Module | DetailCustomizations |
| Header | /Engine/Source/Editor/DetailCustomizations/Public/KeyStructCustomization.h |
| Include | #include "KeyStructCustomization.h" |
Syntax
class FKeyStructCustomization : public IPropertyTypeCustomization
Remarks
Implements a details panel customization for FKey structures. As "Key"
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableKeySelector | Whether the key selector should be enabled or not | |
| FString | DefaultKeyName | Default Key to assign the KeySelector when it is disabled | |
| FText | DisabledKeySelectorToolTip | Tooltip to display on the actual KeySelector | |
| TSharedPtr< SKeySelector > | KeySelector | Shared pointer to the Key Selector. | |
| TSharedPtr< IPropertyHandle > | PropertyHandle | Holds a handle to the property being edited. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FKeyStructCustomization
(
const FKeyStructCustomization& |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CustomizeHeaderOnlyWithButton
(
TSharedRef< class IPropertyHandle > StructPropertyHandle, |
Helper variant that generates the key struct in the header and appends a single button at the end TODO: Is there a better way? | |
| TOptional< FKey > | Gets the current Key being edited. | ||
| FString | Gets default key name - what key selector will default to if it is disabled | ||
| FText | Gets tooltip on the KeySelector when it is disabled | ||
| bool | Gets bEnableKeySelector bool | ||
| TSharedRef< IPropertyTypeCustomization > | MakeInstance () |
Creates a new instance. | |
| void | OnKeyChanged
(
TSharedPtr< FKey > SelectedKey |
Updates the property when a new key is selected. | |
| void | SetDefaultKeyName
(
FString KeyName |
Sets default key name - what key selector will default to if it is disabled | |
| void | SetDisabledKeySelectorToolTip
(
const FText& InToolTip |
Sets tooltip on the KeySelector when it is disabled | |
| void | SetEnableKeySelector
(
bool bKeySelectorEnabled |
Sets a bool for whether the key selector should be enabled or not | |
| void |
Overridden from IPropertyTypeCustomization
| Type | Name | Description | |
|---|---|---|---|
| void | CustomizeChildren
(
TSharedRef< IPropertyHandle > PropertyHandle, |
Called when the children of the property should be customized or extra rows added | |
| void | CustomizeHeader
(
TSharedRef< class IPropertyHandle > PropertyHandle, |
Called when the header of the property (the row in the details panel where the property is shown) If nothing is added to the row, the header is not displayed | |
| bool |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FKeyStructCustomization & | |||
| FKeyStructCustomization & | operator=
(
const FKeyStructCustomization& |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDisplayIcon | bDisplayIcon is deprecated and the icon has been removed |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GetDisplayIcon() is deprecated and the icon referenced has been removed | ||
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | SetDisplayIcon
(
bool bShouldDisplayIcon |
SetDisplayIcon(bShouldDisplayIcon) is deprecated and the icon referenced has been removed |