Navigation
API > API/Editor > API/Editor/MeshPaint
| Name | FMeshPaintGeometryAdapterForStaticMeshes |
| Type | class |
| Header File | /Engine/Source/Editor/MeshPaint/Public/MeshPaintStaticMeshAdapter.h |
| Include Path | #include "MeshPaintStaticMeshAdapter.h" |
Syntax
class FMeshPaintGeometryAdapterForStaticMeshes : public FBaseMeshPaintGeometryAdapter
Implements Interfaces
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FMeshPaintGeometryAdapterForStaticMeshes() |
MeshPaintStaticMeshAdapter.h |
Structs
| Name | Remarks |
|---|---|
| FStaticMeshReferencers | Helpers structure for keeping track of cached static mesh data |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FMeshToComponentMap | TMap< TObjectPtr< UStaticMesh >, FStaticMeshReferencers > | MeshPaintStaticMeshAdapter.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MeshToComponentMap | FMeshToComponentMap | MeshPaintStaticMeshAdapter.h |
Functions
Public
Overridden from FBaseMeshPaintGeometryAdapter
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool InitializeVertexData() |
End IMeshPaintGeometryAdapter Overrides Begin FMeshBasePaintGeometryAdapter | MeshPaintStaticMeshAdapter.h |
Overridden from IMeshPaintGeometryAdapter
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
Reference collecting to prevent GC-ing | MeshPaintStaticMeshAdapter.h | |
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 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 SupportsTexturePaint() |
Whether or not this adapter supports texture painting | MeshPaintStaticMeshAdapter.h | |
virtual bool SupportsVertexPaint() |
Whether or not this adapter supports vertex painting | 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 |