Navigation
API > API/Plugins > API/Plugins/ModelingComponents
TCustomIndexedValuesChange is an implementation of TIndexedValuesChange that allows you to provide the Apply() And Revert() implementations via lambdas, as well as specify a custom data element to be stored with the Change. For example if this is a change to an attribute array, you could store the attribute identifier in the CustomData.
| Name | TCustomIndexedValuesChange |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Changes/IndexedAttributeChange.h |
| Include Path | #include "Changes/IndexedAttributeChange.h" |
Syntax
template<typename ValueType, typename CustomDataType>
class TCustomIndexedValuesChange : public TIndexedValuesChange< ValueType >
Inheritance Hierarchy
- FChange → FCommandChange → FToolCommandChange → TIndexedValuesChange → TCustomIndexedValuesChange
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BaseType | TIndexedValuesChange< ValueType > | Changes/IndexedAttributeChange.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ApplyFunction | TUniqueFunction< void(UObject *, const CustomDataType &Data, const TArray< int32 > &, const TArray< ValueType > &)> | Changes/IndexedAttributeChange.h | ||
| CustomData | CustomDataType | Changes/IndexedAttributeChange.h | ||
| RevertFunction | TUniqueFunction< void(UObject *, const CustomDataType &Data, const TArray< int32 > &, const TArray< ValueType > &)> | Changes/IndexedAttributeChange.h |
Functions
Public
Overridden from FChange
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Apply
(
UObject* Object |
Changes/IndexedAttributeChange.h | ||
virtual void Revert
(
UObject* Object |
Changes/IndexedAttributeChange.h |