Navigation
API > API/Plugins > API/Plugins/UVEditorTools
UV Snapshot Tool
Exports a texture asset of a UV Layout
| Name | UUVEditorUVSnapshotTool |
| Type | class |
| Header File | /Engine/Plugins/Editor/UVEditor/Source/UVEditorTools/Public/UVEditorUVSnapshotTool.h |
| Include Path | #include "UVEditorUVSnapshotTool.h" |
Syntax
UCLASS ()
class UUVEditorUVSnapshotTool :
public UInteractiveTool ,
public IUVToolSupportsSelection ,
public UE::Geometry::IGenericDataOperatorFactory< UE::Geometry::FMeshMapBaker >
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → UUVEditorUVSnapshotTool
- UE::Geometry::IGenericDataOperatorFactory< UE::Geometry::FMeshMapBaker > → UUVEditorUVSnapshotTool
Implements Interfaces
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedUVMap | TObjectPtr< UTexture2D > | Internal cache of bake uv texture result | UVEditorUVSnapshotTool.h | |
| Compute | TUniquePtr< TGenericDataBackgroundCompute< UE::Geometry::FMeshMapBaker > > | Background compute | UVEditorUVSnapshotTool.h | |
| DetailMesh | TSharedPtr< UE::Geometry::FDynamicMesh3, ESPMode::ThreadSafe > | Used in the bake | UVEditorUVSnapshotTool.h | |
| DetailSpatial | TSharedPtr< UE::Geometry::FDynamicMeshAABBTree3, ESPMode::ThreadSafe > | UVEditorUVSnapshotTool.h | ||
| PreviewGeoBackgroundQuad | TObjectPtr< UPreviewGeometry > | Preview Geometry for display in Unwrapped viewport | UVEditorUVSnapshotTool.h | |
| Target | TObjectPtr< UUVEditorToolMeshInput > | Mesh input to UV Editor | UVEditorUVSnapshotTool.h | |
| UVShellSettings | TObjectPtr< UUVEditorBakeUVShellProperties > | Property set for bake and result | UVEditorUVSnapshotTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TUniquePtr< UE::Geometry::TGenericDataOperator< UE::Geometry::FMeshMapBaker > > MakeNewOperator() |
UVEditorUVSnapshotTool.h | ||
virtual void SetTarget
(
const TObjectPtr< UUVEditorToolMeshInput >& TargetIn |
The tool will operate on the mesh given here. Supports only one mesh. | UVEditorUVSnapshotTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAccept() |
UVEditorUVSnapshotTool.h | ||
virtual bool HasAccept() |
UVEditorUVSnapshotTool.h | ||
virtual bool HasCancel() |
UVEditorUVSnapshotTool.h | ||
virtual void OnTick
(
float DeltaTime |
UVEditorUVSnapshotTool.h | ||
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
UVEditorUVSnapshotTool.h | ||
virtual void Setup() |
UVEditorUVSnapshotTool.h | ||
virtual void Shutdown
(
EToolShutdownType ShutdownType |
UVEditorUVSnapshotTool.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void InitializeUVLayerNames
(
TArray< FString >& UVLayerNamesList, |
Initialize the list of all UV Layer names | UVEditorUVSnapshotTool.h |