Navigation
API > API/Plugins > API/Plugins/MeshPaintingToolset
Interface for a class to provide mesh painting support for a subclass of UMeshComponent
| Name | IMeshPaintComponentAdapter |
| Type | class |
| Header File | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/IMeshPaintComponentAdapter.h |
| Include Path | #include "IMeshPaintComponentAdapter.h" |
Syntax
class IMeshPaintComponentAdapter
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IMeshPaintComponentAdapter() |
D-tor | IMeshPaintComponentAdapter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyOrRemoveTextureOverride
(
UTexture* SourceTexture, |
IMeshPaintComponentAdapter.h | ||
void ApplyOrRemoveTextureOverride
(
UTexture* SourceTexture, |
Applies or removes an override texture to use while rendering the meshes materials | IMeshPaintComponentAdapter.h | |
bool Construct
(
UMeshComponent* InComponent, |
Constructs the adapter for a specific LOD index using the mesh component | IMeshPaintComponentAdapter.h | |
FMatrix GetComponentToWorldMatrix() |
Returns the Component to World matrix from the Mesh Component | IMeshPaintComponentAdapter.h | |
void GetInfluencedVertexData
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices and positions that intersect the given sphere | IMeshPaintComponentAdapter.h | |
void GetInfluencedVertexIndices
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices which intersect the given sphere | IMeshPaintComponentAdapter.h | |
const TArray< uint32 > & GetMeshIndices() |
Returns the indices for the current LOD index in the Mesh | IMeshPaintComponentAdapter.h | |
const TArray< FVector > & GetMeshVertices() |
Returns the vertices for the current LOD index in the Mesh | IMeshPaintComponentAdapter.h | |
int32 GetNumUVChannels() |
Returns the number of UV channels for the current LOD index in the Mesh. | IMeshPaintComponentAdapter.h | |
void GetTextureCoordinate
(
int32 VertexIndex, |
Returns the Texture Coordinate at Vertex Index from the Mesh | IMeshPaintComponentAdapter.h | |
void GetVertexColor
(
int32 VertexIndex, |
Returns the Vertex Color at Vertex Index from the Mesh | IMeshPaintComponentAdapter.h | |
void GetVertexPosition
(
int32 VertexIndex, |
Returns the Vertex Position at Vertex Index from the Mesh | IMeshPaintComponentAdapter.h | |
bool Initialize() |
Returns whether or not initialization of necessary data was successful | IMeshPaintComponentAdapter.h | |
bool IsValid() |
Returns whether or not this adapter is in a valid state | IMeshPaintComponentAdapter.h | |
bool LineTraceComponent
(
FHitResult& OutHit, |
Returns the result of tracing a line on the component represented by this adapter | IMeshPaintComponentAdapter.h | |
void OnAdded() |
Called when this adapter is created and added to its owner (used for setting up) | IMeshPaintComponentAdapter.h | |
void OnRemoved() |
Called when this adapter is removed from its owner and deleted (used for cleaning up) | IMeshPaintComponentAdapter.h | |
void PostEdit() |
Post Edit to clear up or update necessary data | IMeshPaintComponentAdapter.h | |
void PreEdit() |
Pre Edit to setup necessary data | IMeshPaintComponentAdapter.h | |
void QueryPaintableTextures
(
int32 MaterialIndex, |
Retrieves a list of textures which are suitable for painting | IMeshPaintComponentAdapter.h | |
bool RayIntersectAdapter
(
UE::Geometry::FIndex3i& HitTriangle, |
Returns the hit result which intersect with the given ray | IMeshPaintComponentAdapter.h | |
void SetVertexColor
(
int32 VertexIndex, |
Sets the Vertex Color at Vertex Index to Color inside of the Mesh | IMeshPaintComponentAdapter.h | |
TArray< uint32 > SphereIntersectTriangles
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the triangle indices which intersect with the given sphere | IMeshPaintComponentAdapter.h | |
TArray< FVector > SphereIntersectVertices
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the vertex positions which intersect the given sphere | IMeshPaintComponentAdapter.h | |
bool SupportsTextureColorPaint() |
Whether or not this adapter supports texture color painting | IMeshPaintComponentAdapter.h | |
bool SupportsTexturePaint() |
Whether or not this adapter supports texture asset painting | IMeshPaintComponentAdapter.h | |
bool SupportsVertexPaint() |
Whether or not this adapter supports vertex painting | IMeshPaintComponentAdapter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void DefaultQueryPaintableTextures
(
int32 MaterialIndex, |
Default functionality for querying textures from a mesh component which are suitable for texture painting | IMeshPaintComponentAdapter.h |