USkinWeightsPaintTool

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingToolsExp

Header

/Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/SkinWeightsPaintTool.h

Include

#include "SkinWeightsPaintTool.h"

Syntax

UCLASS()
class USkinWeightsPaintTool : public UDynamicMeshBrushTool

Variables

Name Description

Protected variable

TUniquePtr< FMe...

 

ActiveChange

Protected variable

bool

 

bInRemoveStroke

Protected variable

bool

 

bInSmoothStroke

Protected variable

FBoneContainer

 

BoneContainer

Protected variable

TArray< FBonePo...

 

BonePositionInfos

Protected variable

bool

 

bStampPending

Protected variable

bool

 

bVisibleWeightsValid

Protected variable

FName

 

CurrentBone

Protected variable

TValueWatcher< ...

 

CurrentBoneWatcher

Protected variable

TUniquePtr< FMe...

 

EditedMesh

Protected variable

FBrushStampData

 

LastStamp

Protected variable

float

 

MaxDrawRadius

Protected variable

TOptional< FNam...

 

PendingCurrentBone

Protected variable

TArray< int >

 

PreviewBrushROI

Protected variable

BoneInfluenceMa...

 

SkinWeightsMap

Protected variable

FBrushStampData

 

StartStamp

Protected variable UProperty

TObjectPtr< USk...

 

ToolProps

Protected variable

UE::Geometry::T...

 

VerticesOctree

Functions

Name Description

Protected function Virtual

void

 

ApplyStamp

(
    const FBrushStampData& Stamp
)

Protected function

void

 

BeginChange()

Protected function Const

double

 

CalculateBrushFalloff

(
    double Distance
)

Protected function

void

 

CalculateVertexROI

(
    const FBrushStampData& Stamp,
    TArray< int >& VertexROI
)

Protected function

TUniquePtr< ...

 

EndChange()

Protected function

void

 

ExternalUpdateValues

(
    const FName& BoneName,
    const TMap< int32, float >& IndexV...
)

Protected function

void

 

InitializeSkinWeights()

Protected function

void

 

RenderBonePositions

(
    FPrimitiveDrawInterface* PDI
)

Protected function

void

 

UpdateBonePositionInfos

(
    float MinRadius
)

Protected function

void

 

UpdateBoneVisualization()

Protected function

void

 

UpdateCurrentBone

(
    const FName& BoneName
)

Protected function

void

 

UpdateEditedSkinWeightsMesh()

Protected function Static

FVector4f

 

WeightToColor

(
    float Value
)

Overridden from UDynamicMeshBrushTool

Name Description

Protected function Virtual

void

 

OnShutdown

(
    EToolShutdownType ShutdownType
)

Subclasses can override these to customize behavior

Overridden from UMeshSurfacePointTool

Name Description

Public function Virtual

bool

 

HitTest

(
    const FRay& Ray,
    FHitResult& OutHit
)

Public function Virtual

void

 

OnBeginDrag

(
    const FRay& Ray
)

UMeshSurfacePointTool implementation

Public function Virtual

void

 

OnEndDrag

(
    const FRay& Ray
)

This function is called when the user releases the button driving a click-drag-release interaction

Public function Virtual

void

 

OnUpdateDrag

(
    const FRay& Ray
)

This function is called each frame that the user is in a click-drag-release interaction

Overridden from UInteractiveTool

Name Description

Public function Virtual Const

bool

 

CanAccept()

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

Protected function Virtual

void

 

OnTick

(
    float DeltaTime
)

Action support/system

Public function Virtual

void

 

RegisterActions

(
    FInteractiveToolActionSet& ActionS...
)

Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction.

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Tool to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup()

Register InputBehaviors, etc

Overridden from IHoverBehaviorTarget

Name Description

Public function Virtual

bool

 

OnUpdateHover

(
    const FInputDeviceRay& DevicePos
)

Update active hover sequence with new input position

Classes

Name

Description

Protected struct

FBonePositionInfo

Typedefs

Name

Description

BoneInfluenceMapType