Navigation
API > API/Editor > API/Editor/MeshPaint
References
| Module | MeshPaint |
| Header | /Engine/Source/Editor/MeshPaint/Public/TexturePaintHelpers.h |
| Include | #include "TexturePaintHelpers.h" |
Syntax
class TexturePaintHelpers
Remarks
Helpers functions for texture painting functionality
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CopyTextureToRenderTargetTexture
(
UTexture* SourceTexture, |
Static: Copies a texture to a render target texture | |
| UTexture2D * | CreateTempUncompressedTexture
(
UTexture2D* SourceTexture |
Static: Creates a temporary texture used to transfer data to a render target in memory | |
| bool | DoesMeshComponentUseTexture
(
UMeshComponent* MeshComponent, |
Checks whether or not the given MeshComponent's materials use the specified texture | |
| void | FindMaterialIndicesUsingTexture
(
const UTexture* Texture, |
Tries to find Materials using the given Texture and retrieve the corresponding material indices from the MEsh Compon | |
| bool | GenerateSeamMask
(
UMeshComponent* MeshComponent, |
Will generate a mask texture, used for texture dilation, and store it in the passed in render target | |
| int32 | Returns the maximum bytes per pixel that are supported for source textures when painting. | ||
| EPixelFormat | Returns the pixel format that CreateTempUncompressedTexture uses to create render target data for painting. | ||
| void | RetrieveMeshSectionsForMaterialIndices
(
const UMeshComponent* MeshComponent, |
Retrieve LOD mesh sections from MeshComponent which contain one of the Material Indices | |
| void | RetrieveMeshSectionsForTextures
(
const UMeshComponent* MeshComponent, |
Retrieve LOD mesh sections from MeshComponent which use one of the given textures | |
| void | RetrieveTexturesForComponent
(
const UMeshComponent* Component, |
Retrieves all Paintable Textures from the given MeshComponent | |
| void | SetupInitialRenderTargetData
(
UTexture2D* InTextureSource, |
Makes sure that the render target is ready to paint on |