FMeshPaintSkeletalMeshComponentAdapter

[FMeshPaintGeometryAdapterForSkeletalMeshes](API\Editor\MeshPaint\FMeshPaintGeometryAdapterForSkel-).

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshPaintingToolset

Header

/Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/MeshPaintSkeletalMeshAdapter.h

Include

#include "MeshPaintSkeletalMeshAdapter.h"

Syntax

class FMeshPaintSkeletalMeshComponentAdapter : public FBaseMeshPaintComponentAdapter

Remarks

Variables

Name Description

Protected variable

FSkeletalMeshLO...

 

LODData

LOD render data (at Mesh LOD Index) containing data to change

Protected variable

FSkeletalMeshLO...

 

LODModel

LOD model (source) data (at Mesh LOD Index) containing data to change

Protected variable

int32

 

MeshLODIndex

LOD Index for which data has to be retrieved / altered

Protected variable

FSkeletalMeshRe...

 

MeshResource

Skeletal Mesh resource retrieved from the Skeletal Mesh

Protected variable

USkeletalMesh &...

 

ReferencedSkeletalMesh

Skeletal mesh currently set to the Skeletal Mesh Component

Protected variable

FDelegateHandle

 

SkeletalMeshChangedHandle

Delegate called when skeletal mesh is changed on the component

Protected variable

USkeletalMeshCo...

 

SkeletalMeshComponent

Skeletal mesh component represented by this adapter

Destructors

Functions

Name Description

Public function Static

void

 

AddReferencedObjectsGlobals

(
    FReferenceCollector& Collector
)

Public function Static

void

 

CleanupGlobals()

Public function Static

void

 

InitializeAdapterGlobals()

Protected function

void

 

OnPostMeshCached

(
    USkeletalMesh* SkeletalMesh
)

Callback for when skeletal mesh DDC data is rebuild

Protected function

void

 

OnSkeletalMeshChanged()

End FBaseMeshPaintGeometryAdapter Overrides Callback for when the skeletal mesh on the component is changed

Overridden from FBaseMeshPaintComponentAdapter

Name Description

Public function Virtual

bool

 

InitializeVertexData()

End IMeshPaintGeometryAdapter Overrides Start FBaseMeshPaintGeometryAdapter Overrides

Overridden from IMeshPaintComponentAdapter

Name Description

Public function Virtual Const

void

 

ApplyOrRemoveTextureOverride

(
    UTexture* SourceTexture,
    UTexture* OverrideTexture
)

Applies or removes an override texture to use while rendering the meshes materials

Public function Virtual

bool

 

Construct

(
    UMeshComponent* InComponent,
    int32 InMeshLODIndex
)

Start IMeshPaintGeometryAdapter Overrides

Public function Virtual Const

FMatrix

 

GetComponentToWorldMatrix()

Returns the Component to World matrix from the Mesh Component

Public function Virtual Const

void

 

GetTextureCoordinate

(
    int32 VertexIndex,
    int32 ChannelIndex,
    FVector2D& OutTextureCoordinate
)

Returns the Texture Coordinate at Vertex Index from the Mesh

Public function Virtual Const

void

 

GetVertexColor

(
    int32 VertexIndex,
    FColor& OutColor,
    bool bInstance
)

Returns the Vertex Color at Vertex Index from the Mesh

Public function Virtual

bool

 

Initialize()

Start IMeshPaintGeometryAdapter Overrides

Public function Virtual Const

bool

 

IsValid()

Returns whether or not this adapter is in a valid state

Public function Virtual Const

bool

 

LineTraceComponent

(
    FHitResult& OutHit,
    const FVector Start,
    const FVector End,
    const FCollisionQueryParams& Param...
)

Returns the result of tracing a line on the component represented by this adapter

Public function Virtual

void

 

OnAdded()

Called when this adapter is created and added to its owner (used for setting up)

Public function Virtual

void

 

OnRemoved()

Called when this adapter is removed from its owner and deleted (used for cleaning up)

Public function Virtual

void

 

PostEdit()

Post Edit to clear up or update necessary data

Public function Virtual

void

 

PreEdit()

Pre Edit to setup necessary data

Public function Virtual

void

 

QueryPaintableTextures

(
    int32 MaterialIndex,
    int32& OutDefaultIndex,
    TArray< struct FPaintableTexture > ...
)

Retrieves a list of textures which are suitable for painting

Public function Virtual

void

 

SetVertexColor

(
    int32 VertexIndex,
    FColor Color,
    bool bInstance
)

Sets the Vertex Color at Vertex Index to Color inside of the Mesh

Public function Virtual Const

bool

 

SupportsTexturePaint()

Whether or not this adapter supports texture painting

Public function Virtual Const

bool

 

SupportsVertexPaint()

Whether or not this adapter supports vertex painting

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Pure virtual that must be overloaded by the inheriting class.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss