Navigation
API > API/Plugins > API/Plugins/MeshPaintingToolset
| Name | FMeshPaintStaticMeshComponentAdapter |
| Type | class |
| Header File | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/MeshPaintStaticMeshAdapter.h |
| Include Path | #include "MeshPaintStaticMeshAdapter.h" |
Syntax
class FMeshPaintStaticMeshComponentAdapter : public FBaseMeshPaintComponentAdapter
Inheritance Hierarchy
- FGCObject → FBaseMeshPaintComponentAdapter → FMeshPaintStaticMeshComponentAdapter
- FSharedFromThisBase → TSharedFromThis → FBaseMeshPaintComponentAdapter → FMeshPaintStaticMeshComponentAdapter
Implements Interfaces
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FMeshPaintStaticMeshComponentAdapter() |
MeshPaintStaticMeshAdapter.h |
Functions
Public
Overridden from FBaseMeshPaintComponentAdapter
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool InitializeVertexData() |
End IMeshPaintGeometryAdapter Overrides Begin FMeshBasePaintGeometryAdapter | MeshPaintStaticMeshAdapter.h |
Overridden from IMeshPaintComponentAdapter
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyOrRemoveTextureOverride
(
UTexture* SourceTexture, |
Applies or removes an override texture to use while rendering the meshes materials | MeshPaintStaticMeshAdapter.h | |
virtual bool Construct
(
UMeshComponent* InComponent, |
Start IMeshPaintGeometryAdapter Overrides | MeshPaintStaticMeshAdapter.h | |
virtual FMatrix GetComponentToWorldMatrix() |
Returns the Component to World matrix from the Mesh Component | MeshPaintStaticMeshAdapter.h | |
virtual int32 GetNumUVChannels() |
Returns the number of UV channels for the current LOD index in the Mesh. | MeshPaintStaticMeshAdapter.h | |
virtual void GetTextureCoordinate
(
int32 VertexIndex, |
Returns the Texture Coordinate at Vertex Index from the Mesh | MeshPaintStaticMeshAdapter.h | |
virtual void GetVertexColor
(
int32 VertexIndex, |
Returns the Vertex Color at Vertex Index from the Mesh | MeshPaintStaticMeshAdapter.h | |
virtual bool Initialize() |
Start IMeshPaintGeometryAdapter Overrides | MeshPaintStaticMeshAdapter.h | |
virtual bool IsValid() |
Returns whether or not this adapter is in a valid state | MeshPaintStaticMeshAdapter.h | |
virtual bool LineTraceComponent
(
FHitResult& OutHit, |
Returns the result of tracing a line on the component represented by this adapter | MeshPaintStaticMeshAdapter.h | |
virtual void OnAdded() |
Called when this adapter is created and added to its owner (used for setting up) | MeshPaintStaticMeshAdapter.h | |
virtual void OnRemoved() |
Called when this adapter is removed from its owner and deleted (used for cleaning up) | MeshPaintStaticMeshAdapter.h | |
virtual void PostEdit() |
Post Edit to clear up or update necessary data | MeshPaintStaticMeshAdapter.h | |
virtual void PreEdit() |
Pre Edit to setup necessary data | MeshPaintStaticMeshAdapter.h | |
virtual void QueryPaintableTextures
(
int32 MaterialIndex, |
Retrieves a list of textures which are suitable for painting | MeshPaintStaticMeshAdapter.h | |
virtual void SetVertexColor
(
int32 VertexIndex, |
Sets the Vertex Color at Vertex Index to Color inside of the Mesh | MeshPaintStaticMeshAdapter.h | |
virtual bool SupportsTextureColorPaint() |
Whether or not this adapter supports texture color painting | MeshPaintStaticMeshAdapter.h | |
virtual bool SupportsTexturePaint() |
Whether or not this adapter supports texture asset painting | MeshPaintStaticMeshAdapter.h | |
virtual bool SupportsVertexPaint() |
Whether or not this adapter supports vertex painting | MeshPaintStaticMeshAdapter.h |
Overridden from FGCObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
MeshPaintStaticMeshAdapter.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void OnPostMeshBuild
(
UStaticMesh* StaticMesh |
End FMeshBasePaintGeometryAdapter Callback for when the static mesh data is rebuilt | MeshPaintStaticMeshAdapter.h | |
void OnStaticMeshChanged
(
UStaticMeshComponent* StaticMeshComponent |
Callback for when the static mesh on the component is changed | MeshPaintStaticMeshAdapter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddReferencedObjectsGlobals
(
FReferenceCollector& Collector |
MeshPaintStaticMeshAdapter.h | ||
static void CleanupGlobals() |
MeshPaintStaticMeshAdapter.h | ||
static void InitializeAdapterGlobals() |
MeshPaintStaticMeshAdapter.h |