Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnly
Captures a per-vertex Before/After snapshot of weights touched in a stroke. Storing the full VertexWeights avoids per-bone delta replay and order-dependent eviction at undo time.
| Name | FMeshSkinWeightsChange |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingToolsEditorOnly/Public/SkeletalMesh/SkinWeightsPaintTool.h |
| Include Path | #include "SkeletalMesh/SkinWeightsPaintTool.h" |
Syntax
class FMeshSkinWeightsChange : public FToolCommandChange
Inheritance Hierarchy
- FChange → FCommandChange → FToolCommandChange → FMeshSkinWeightsChange
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshSkinWeightsChange
(
const FName InSkinWeightProfile, |
SkeletalMesh/SkinWeightsPaintTool.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AfterStates | TArray< VertexWeights > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| BeforeStates | TArray< VertexWeights > | Parallel with PerTransactionVertexChangeTracker.Vertices, populated by Close. | SkeletalMesh/SkinWeightsPaintTool.h | |
| ChangedBones | TSet< BoneIndex > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| PerTransactionVertexChangeTracker | FVertexChangeTracker | First-touch-this-transaction gate. | SkeletalMesh/SkinWeightsPaintTool.h | |
| SkinWeightProfile | FName | SkeletalMesh/SkinWeightsPaintTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Close
(
USkinWeightsPaintTool* Tool |
Captures Before/After snapshots from the tool's weight buffers. | SkeletalMesh/SkinWeightsPaintTool.h | |
void StoreMultipleWeightEdits
(
const FMultiBoneWeightEdits& WeightEdits |
Called per stamp during a stroke to accumulate touched vertices/bones into the change. | SkeletalMesh/SkinWeightsPaintTool.h |
Public Virtual
Overridden from FChange
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Apply
(
UObject* Object |
SkeletalMesh/SkinWeightsPaintTool.h | ||
virtual void Revert
(
UObject* Object |
SkeletalMesh/SkinWeightsPaintTool.h | ||
virtual FString ToString() |
SkeletalMesh/SkinWeightsPaintTool.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void RestoreVertexFromSnapshot
(
USkinWeightsPaintTool* Tool, |
SkeletalMesh/SkinWeightsPaintTool.h |