Navigation
API > API/Editor > API/Editor/DetailCustomizations > API/Editor/DetailCustomizations/Customizations
Inheritance Hierarchy
- TSharedFromThis
- IPropertyTypeCustomization
- FMathStructCustomization
- FColorStructCustomization
- FMathStructProxyCustomization
- FMatrixStructCustomization
- FQuatStructCustomization
- FTransformStructCustomization
References
| Module | DetailCustomizations |
| Header | /Engine/Source/Editor/DetailCustomizations/Public/Customizations/MathStructCustomizations.h |
| Include | #include "Customizations/MathStructCustomizations.h" |
Syntax
class FMathStructCustomization : public IPropertyTypeCustomization
Remarks
Base class for math struct customization (e.g, vector, rotator, color)
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsUsingSlider | True if a value is being changed by dragging a slider | |
| bool | bPreserveScaleRatio | True if the ratio is locked when scaling occurs (uniform scaling) | |
| TArray< TWeakPtr< SWidget > > | NumericEntryBoxWidgetList | All created numeric entry box widget for this customization | |
| FOnNumericEntryBoxDynamicSliderMinMaxValueChanged | OnNumericEntryBoxDynamicSliderMaxValueChanged | ||
| FOnNumericEntryBoxDynamicSliderMinMaxValueChanged | OnNumericEntryBoxDynamicSliderMinValueChanged | ||
| TArray< TSharedRef< IPropertyHandle > > | SortedChildHandles | All the sorted children of the struct that should be displayed |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ExtractNumericMetadata
(
TSharedRef< IPropertyHandle >& PropertyHandle, |
Utility function that will extract common Math related numeric metadata | |
| FOnNumericEntryBoxDynamicSliderMinMaxValueChanged & | Return max/min slider value changed delegate (only apply if SupportDynamicSliderMaxValue or SupportDynamicSliderMinValue are true) | ||
| FOnNumericEntryBoxDynamicSliderMinMaxValueChanged & | |||
| void | GetSortedChildren
(
TSharedRef< IPropertyHandle > StructPropertyHandle, |
Gets the sorted children for the struct | |
| bool | IsValueEnabled
(
TWeakPtr< IPropertyHandle > WeakHandlePtr |
Called to see if the value is enabled for editing | |
| TSharedRef< SWidget > | MakeChildWidget
(
TSharedRef< IPropertyHandle >& StructurePropertyHandle, |
Constructs a widget for the property handle | |
| void | MakeHeaderRow
(
TSharedRef< IPropertyHandle >& StructPropertyHandle, |
Makes the header row for the customization | |
| TSharedRef< IPropertyTypeCustomization > | MakeInstance () |
||
| void | OnDynamicSliderMaxValueChanged
(
NumericType NewMaxSliderValue, |
Callback when the max/min spinner value are changed (only apply if SupportDynamicSliderMaxValue or SupportDynamicSliderMinValue are true) | |
| void | OnDynamicSliderMinValueChanged
(
NumericType NewMinSliderValue, |
||
| TOptional< NumericType > | OnGetValue
(
TWeakPtr< IPropertyHandle > WeakHandlePtr |
Gets the value as a float for the provided property handle | |
| FText | OnGetValueToolTip
(
TWeakPtr< IPropertyHandle > WeakHandlePtr |
Gets the tooltip for the value. | |
| void | OnValueChanged
(
NumericType NewValue, |
Called when the value is changed in the property editor | |
| void | OnValueCommitted
(
NumericType NewValue, |
Called when the value is committed from the property editor | |
| void | SetValue
(
NumericType NewValue, |
Called to set the value of the property handle. |
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< IPropertyHandle > StructPropertyHandle, |
IPropertyTypeCustomization instance |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FNumericMetadata | Argument struct for ExtractNumericMetadata, to make it easier to add new metadata to extract. |
Typedefs
| Name | Description |
|---|---|
| FOnNumericEntryBoxDynamicSliderMinMaxValueChanged | Notification when the max/min slider values are changed (only apply if SupportDynamicSliderMaxValue or SupportDynamicSliderMinValue are true) |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ExtractNumericMetadata
(
TSharedRef< IPropertyHandle >& PropertyHandle, |
Use ExtractNumericMetadata overload with struct argument instead. |