Navigation
API > API/Plugins > API/Plugins/MeshPaintingToolset
Class for texture asset painting tool. This paints to texture assets directly from the mesh. The texture asset to paint is selected from the ones referenced in the mesh component's materials.
| Name | UMeshTextureAssetPaintingTool |
| Type | class |
| Header File | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/MeshTexturePaintingTool.h |
| Include Path | #include "MeshTexturePaintingTool.h" |
Syntax
UCLASS (MinimalAPI)
class UMeshTextureAssetPaintingTool : public UMeshTexturePaintingTool
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → USingleSelectionTool → UMeshSurfacePointTool → UBaseBrushTool → UMeshTexturePaintingTool → UMeshTextureAssetPaintingTool
Implements Interfaces
- IClickDragBehaviorTarget
- IModifierToggleBehaviorTarget
- IHoverBehaviorTarget
- IInputBehaviorSource
- IInteractiveToolCameraFocusAPI
- IMeshPaintSelectionInterface
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMeshTextureAssetPaintingTool() |
MeshTexturePaintingTool.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetProperties | TObjectPtr< UMeshTextureAssetPaintingToolProperties > | MeshTexturePaintingTool.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CycleTextures
(
int32 Direction |
Change selected texture to previous or next available. | MeshTexturePaintingTool.h | |
UTexture * GetSelectedPaintTextureWithOverride() |
Get the selected paint texture, and return the modified overriden texture if currently painting. | MeshTexturePaintingTool.h | |
bool ShouldFilterTextureAsset
(
const FAssetData& AssetData |
Returns true if asset shouldn't be shown in UI because it is not in our paintable texture array. | MeshTexturePaintingTool.h |
Overridden from UMeshTexturePaintingTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetSelectedUVChannel
(
UMeshComponent const* InMeshComponent |
MeshTexturePaintingTool.h |
Protected
Overridden from UMeshTexturePaintingTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CacheTexturePaintData() |
MeshTexturePaintingTool.h | ||
virtual bool CanPaintTextureToComponent
(
UTexture* InTexture, |
MeshTexturePaintingTool.h | ||
| MeshTexturePaintingTool.h | |||
virtual UTexture2D * GetSelectedPaintTexture
(
UMeshComponent const* InMeshComponent |
MeshTexturePaintingTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MeshTexturePaintingTool.h | |||
virtual void Setup() |
MeshTexturePaintingTool.h |
Overridden from IMeshPaintSelectionInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowsMultiselect() |
MeshTexturePaintingTool.h | ||
virtual bool IsMeshAdapterSupported
(
TSharedPtr< IMeshPaintComponentAdapter > MeshAdapter |
MeshTexturePaintingTool.h |