Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnly
This class wraps a source skeletal mesh used to transfer skin weights to the tool target mesh
| Name | UWeightToolTransferManager |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingToolsEditorOnly/Public/SkeletalMesh/SkinWeightsPaintTool.h |
| Include Path | #include "SkeletalMesh/SkinWeightsPaintTool.h" |
Syntax
UCLASS (MinimalAPI)
class UWeightToolTransferManager : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UWeightToolTransferManager
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MeshSelector | TObjectPtr< UToolMeshSelector > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| SourcePreviewMesh | TObjectPtr< UPreviewMesh > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| SourceSkeletalMesh | TObjectPtr< USkeletalMesh > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| SourceTarget | TObjectPtr< UToolTarget > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| WeightTool | TWeakObjectPtr< USkinWeightsPaintTool > | SkeletalMesh/SkinWeightsPaintTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanTransferWeights() |
Returns true if everything is setup and ready to transfer | SkeletalMesh/SkinWeightsPaintTool.h | |
void DrawHUD
(
FCanvas* Canvas, |
SkeletalMesh/SkinWeightsPaintTool.h | ||
UToolMeshSelector * GetMeshSelector() |
Get the mesh selector for the source mesh | SkeletalMesh/SkinWeightsPaintTool.h | |
UPreviewMesh * GetPreviewMesh() |
Get the preview mesh for the source mesh | SkeletalMesh/SkinWeightsPaintTool.h | |
UToolTarget * GetTarget() |
Gets the tool target for the source mesh | SkeletalMesh/SkinWeightsPaintTool.h | |
void InitialSetup
(
USkinWeightsPaintTool* InWeightTool, |
This must be called from within the parent tool's Setup() so that the selection mechanics are registered for capturing input | SkeletalMesh/SkinWeightsPaintTool.h | |
void OnPropertyModified
(
const USkinWeightsPaintToolProperties* WeightToolProperties, |
Called when tool settings are modified | SkeletalMesh/SkinWeightsPaintTool.h | |
void Render
(
IToolsContextRenderAPI* RenderAPI |
Render the selection mechanism | SkeletalMesh/SkinWeightsPaintTool.h | |
void SetSourceMesh
(
USkeletalMesh* InSkeletalMesh |
Update the mesh we are transferring from | SkeletalMesh/SkinWeightsPaintTool.h | |
void Shutdown() |
Called when the tool is shutdown | SkeletalMesh/SkinWeightsPaintTool.h | |
void TransferWeights() |
Run the weight transfer | SkeletalMesh/SkinWeightsPaintTool.h |