UBakeMeshAttributeTool

Base Mesh Bake tool

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingToolsExp

Header

/Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/BakeMeshAttributeTool.h

Include

#include "BakeMeshAttributeTool.h"

Syntax

UCLASS()
class UBakeMeshAttributeTool :
    public UMultiSelectionMeshEditingTool,
    public IInteractiveToolExclusiveToolAPI

Remarks

Base Mesh Bake tool

Variables

Constructors

Name Description

Public function

UBakeMeshAttributeTool()

Functions

Name Description

Protected function Static

AActor *

 

GetDynamicMeshTarget

(
    UToolTarget* Target
)

Protected function Static

USkeletalMes...

 

GetSkeletalMeshTarget

(
    UToolTarget* Target
)

Protected function Static

UStaticMesh ...

 

GetStaticMeshTarget

(
    UToolTarget* Target
)

Utilities

Protected function Static

void

 

ProcessComponentTextures

(
    const UPrimitiveComponent* Com...,
    ProcessFn&& ProcessFunc
)

Iterate through a primitive component's textures by material ID.

Protected function Static

int

 

SelectColorTextureToBake

(
    const TArray< UTexture* >& Te...
)

Given an array of textures associated with a material, use heuristics to identify the color/albedo texture.

Protected function Static

void

 

UpdateMultiTextureMaterialIDs

(
    UToolTarget* Target,
    TArray< TObjectPtr< UTexture2D >>&...,
    TArray< TObjectPtr< UTexture2D >>&...
)

Find all source textures and material IDs for a given target.

Protected function

EBakeOpState

 

UpdateResult_Curvature

(
    const FImageDimensions& Dimensions
)

Protected function

EBakeOpState

 

UpdateResult_MeshProperty

(
    const FImageDimensions& Dimensions
)

Protected function

EBakeOpState

 

UpdateResult_MultiTexture

(
    const FImageDimensions& Dimensions,
    const FDynamicMesh3* DetailMes...
)

Protected function

EBakeOpState

 

UpdateResult_Normal

(
    const FImageDimensions& Dimensions
)

Protected function

EBakeOpState

 

UpdateResult_Occlusion

(
    const FImageDimensions& Dimensions
)

Protected function

EBakeOpState

 

UpdateResult_TargetMeshTangents

(
    EBakeMapType BakeType
)

Update the OpState based on the validity of the target mesh tangents

Protected function

EBakeOpState

 

UpdateResult_Texture2DImage

(
    const FImageDimensions& Dimensions,
    const FDynamicMesh3* DetailMes...
)

Protected function Static

void

 

UpdateUVLayerNames

(
    FString& UVLayer,
    TArray< FString >& UVLayerNamesLis...,
    const FDynamicMesh3& Mesh
)

Updates a tool property set's UVLayerNamesList from the list of UV layers on a given mesh.

Protected function

bool

 

ValidTargetMeshTangents()

Compute validity of the Target Mesh tangents.

Overridden from UInteractiveTool

Name Description

Public function Virtual Const

bool

 

CanAccept()

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

Public function Virtual

void

 

Setup()

Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called