Navigation
API > API/Editor > API/Editor/MeshPaint
Inheritance Hierarchy
- IMeshPaintGeometryAdapter
- FBaseMeshPaintGeometryAdapter
- FMeshPaintGeometryAdapterForSkeletalMeshes
- FMeshPaintGeometryAdapterForStaticMeshes
- FMeshPaintGeometryAdapterForSplineMeshes
References
| Module | MeshPaint |
| Header | /Engine/Source/Editor/MeshPaint/Public/IMeshPaintGeometryAdapter.h |
| Include | #include "IMeshPaintGeometryAdapter.h" |
Syntax
class IMeshPaintGeometryAdapter
Remarks
Interface for a class to provide mesh painting support for a subclass of UMeshComponent
Destructors
| Type | Name | Description | |
|---|---|---|---|
| D-tor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Reference collecting to prevent GC-ing | |
| void | ApplyOrRemoveTextureOverride
(
UTexture* SourceTexture, |
Applies or removes an override texture to use while rendering the meshes materials | |
| bool | Construct
(
UMeshComponent* InComponent, |
Constructs the adapter for a specific LOD index using the mesh component | |
| void | DefaultApplyOrRemoveTextureOverride
(
UMeshComponent* InMeshComponent, |
Default functionality for applying or remove a texture override | |
| void | DefaultQueryPaintableTextures
(
int32 MaterialIndex, |
Default functionality for querying textures from a mesh component which are suitable for texture painting | |
| FMatrix | Returns the Component to World matrix from the Mesh Component | ||
| void | GetInfluencedVertexData
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices and positions that intersect the given sphere | |
| void | GetInfluencedVertexIndices
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices which intersect the given sphere | |
| const TArray< uint32 > & | Returns the indices for the current LOD index in the Mesh | ||
| const TArray< FVector > & | Returns the vertices for the current LOD index in the Mesh | ||
| void | GetTextureCoordinate
(
int32 VertexIndex, |
Returns the Texture Coordinate at Vertex Index from the Mesh | |
| void | GetVertexColor
(
int32 VertexIndex, |
Returns the Vertex Color at Vertex Index from the Mesh | |
| void | GetVertexPosition
(
int32 VertexIndex, |
Returns the Vertex Position at Vertex Index from the Mesh | |
| bool | Initialize () |
Returns whether or not initialization of necessary data was successful | |
| bool | IsValid () |
Returns whether or not this adapter is in a valid state | |
| bool | LineTraceComponent
(
FHitResult& OutHit, |
Returns the result of tracing a line on the component represented by this adapter | |
| void | OnAdded () |
Called when this adapter is created and added to its owner (used for setting up) | |
| void | OnRemoved () |
Called when this adapter is removed from its owner and deleted (used for cleaning up) | |
| void | PostEdit () |
Post Edit to clear up or update necessary data | |
| void | PreEdit () |
Pre Edit to setup necessary data | |
| void | QueryPaintableTextures
(
int32 MaterialIndex, |
Retrieves a list of textures which are suitable for painting | |
| void | SetVertexColor
(
int32 VertexIndex, |
Sets the Vertex Color at Vertex Index to Color inside of the Mesh | |
| TArray< uint32 > | SphereIntersectTriangles
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the triangle indices which intersect with the given sphere | |
| TArray< FVector > | SphereIntersectVertices
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the vertex positions which intersect the given sphere | |
| bool | Whether or not this adapter supports texture painting | ||
| bool | Whether or not this adapter supports vertex painting |