Navigation
API > API/Plugins > API/Plugins/MeshPaintingToolset
Helpers functions for texture painting functionality
| Name | UTexturePaintToolset |
| Type | class |
| Header File | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/TexturePaintToolset.h |
| Include Path | #include "TexturePaintToolset.h" |
Syntax
UCLASS (MinimalAPI)
class UTexturePaintToolset : public UBlueprintFunctionLibrary
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBlueprintFunctionLibrary → UTexturePaintToolset
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CopyTextureToRenderTargetTexture
(
UTexture* SourceTexture, |
Static: Copies a texture to a render target texture | TexturePaintToolset.h | |
static UTexture2D * CreateScratchUncompressedTexture
(
UTexture2D* SourceTexture |
Static: Creates a temporary texture used to transfer data to a render target in memory | TexturePaintToolset.h | |
static void FindMaterialIndicesUsingTexture
(
const UTexture* Texture, |
Tries to find Materials using the given Texture and retrieve the corresponding material indices from the MEsh Compon | TexturePaintToolset.h | |
static bool GenerateSeamMask
(
UMeshComponent* MeshComponent, |
Will generate a mask texture, used for texture dilation, and store it in the passed in render target | TexturePaintToolset.h | |
static int32 GetMaxSupportedBytesPerPixelForPainting () |
Returns the maximum bytes per pixel that are supported for source textures when painting. | TexturePaintToolset.h | |
static EPixelFormat GetTempUncompressedTexturePixelFormat() |
Returns the pixel format that CreateTempUncompressedTexture uses to create render target data for painting. | TexturePaintToolset.h | |
static void RetrieveMeshSectionsForMaterialIndices
(
const UMeshComponent* MeshComponent, |
Retrieve LOD mesh sections from MeshComponent which contain one of the Material Indices | TexturePaintToolset.h | |
static void RetrieveMeshSectionsForTextures
(
const UMeshComponent* MeshComponent, |
Retrieve LOD mesh sections from MeshComponent which use one of the given textures | TexturePaintToolset.h | |
static void RetrieveTexturesForComponent
(
const UMeshComponent* Component, |
Retrieves all Paintable Textures from the given MeshComponent | TexturePaintToolset.h | |
static void SetupInitialRenderTargetData
(
UTexture2D* InTextureSource, |
Keep old legacy method of initializing render target data for the paint brush texture; | TexturePaintToolset.h |