Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsExp
Base Bake Maps tool
| Name | UBakeMeshAttributeMapsToolBase |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/BakeMeshAttributeMapsToolBase.h |
| Include Path | #include "BakeMeshAttributeMapsToolBase.h" |
Syntax
UCLASS (MinimalAPI)
class UBakeMeshAttributeMapsToolBase :
public UBakeMeshAttributeTool ,
public UE::Geometry::IGenericDataOperatorFactory< UE::Geometry::FMeshMapBaker >
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → UMultiSelectionTool → UMultiSelectionMeshEditingTool → UBakeMeshAttributeTool → UBakeMeshAttributeMapsToolBase
Implements Interfaces
- IGenericDataOperatorFactory
- IInputBehaviorSource
- IInteractiveToolCameraFocusAPI
- IInteractiveToolExclusiveToolAPI
- IInteractiveToolManageGeometrySelectionAPI
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBakeMeshAttributeMapsToolBase() |
BakeMeshAttributeMapsToolBase.h |
Structs
| Name | Remarks |
|---|---|
| FBakeAnalytics | Analytics |
| FBakeSettings | Bake parameters |
Functions
Public
Overridden from UMultiSelectionMeshEditingTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnShutdown
(
EToolShutdownType ShutdownType |
BakeMeshAttributeMapsToolBase.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnTick
(
float DeltaTime |
BakeMeshAttributeMapsToolBase.h | ||
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
BakeMeshAttributeMapsToolBase.h | ||
virtual void Setup() |
BakeMeshAttributeMapsToolBase.h |
Overridden from IGenericDataOperatorFactory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TUniquePtr< UE::Geometry::TGenericDataOperator< UE::Geometry::FMeshMapBaker > > MakeNewOperator() |
BakeMeshAttributeMapsToolBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CreateTextureAssets
(
const TMap< EBakeMapType, TObjectPtr< UTexture2D > >& Textures, |
Create texture assets from our result map of Texture2D | BakeMeshAttributeMapsToolBase.h | |
virtual void GatherAnalytics
(
FBakeAnalytics::FMeshSettings& Data |
Computes the NumTargetMeshTris, NumDetailMesh and NumDetailMeshTris analytics. | BakeMeshAttributeMapsToolBase.h | |
virtual FString GetAnalyticsEventName() |
BakeMeshAttributeMapsToolBase.h | ||
void InitializeEmptyMaps() |
BakeMeshAttributeMapsToolBase.h | ||
void InvalidateCompute() |
Invalidates the background compute operator. | BakeMeshAttributeMapsToolBase.h | |
void OnMapsUpdated
(
const TUniquePtr< UE::Geometry::FMeshMapBaker >& NewResult |
Retrieves the result of the FMeshMapBaker and generates UTexture2D into the CachedMaps. | BakeMeshAttributeMapsToolBase.h | |
void OnMapTypesUpdated
(
EBakeMapType ResultMapTypes, |
To be invoked by client when bake map types change. | BakeMeshAttributeMapsToolBase.h | |
void PostSetup () |
Post-client setup function. | BakeMeshAttributeMapsToolBase.h | |
void ResetPreview() |
Resets the preview material parameters to their default state. | BakeMeshAttributeMapsToolBase.h | |
void UpdatePreview
(
EBakeMapType PreviewMapType |
Update the preview material parameters for a given a Bake type. | BakeMeshAttributeMapsToolBase.h | |
void UpdatePreview
(
const FString& PreviewDisplayName, |
Update the preview material parameters for a given Bake type display name. | BakeMeshAttributeMapsToolBase.h | |
void UpdatePreviewNames
(
const EBakeMapType MapTypes, |
Updates a tool property set's MapPreviewNamesList from the list of active map types. | BakeMeshAttributeMapsToolBase.h | |
virtual void UpdateResult() |
Process dirty props and update background compute. Invoked during Render. | BakeMeshAttributeMapsToolBase.h | |
EBakeOpState UpdateResult_SampleFilterMask
(
UTexture2D* SampleFilterMask |
BakeMeshAttributeMapsToolBase.h | ||
virtual void UpdateVisualization () |
Updates the preview material on the preview mesh with the computed results. | BakeMeshAttributeMapsToolBase.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void GatherAnalytics
(
const UE::Geometry::FMeshMapBaker& Result, |
Records bake timing and settings data for analytics. | BakeMeshAttributeMapsToolBase.h | |
static EBakeMapType GetMapTypes
(
const int32& MapTypes |
Process a bitfield into an EBakeMapType. | BakeMeshAttributeMapsToolBase.h | |
static void GetTextureName
(
EBakeMapType MapType, |
BakeMeshAttributeMapsToolBase.h | ||
static UE::Geometry::FTexture2DBuilder::ETextureType GetTextureType
(
EBakeMapType MapType, |
Utilities | BakeMeshAttributeMapsToolBase.h | |
static void RecordAnalytics
(
const FBakeAnalytics& Data, |
Posts an analytics event using the given analytics struct. | BakeMeshAttributeMapsToolBase.h |