Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Experimental/UVEditor/Source/UVEditorTools/Public/ToolTargets/UVEditorToolMeshInput.h |
Include |
#include "ToolTargets/UVEditorToolMeshInput.h" |
UCLASS()
class UUVEditorToolMeshInput : public UToolTarget
A package of the needed information for an asset being operated on by a UV editor tool. It includes a UV unwrap mesh, a mesh with the UV layer applied, and background-op-compatible previews for each. It also has convenience methods for updating all of the represenations from just one of them, using a "fast update" code path when possible.
This tool target is a bit different from usual in that it is not created by a tool target manager, and therefore doesn't have an accompanying factory. Instead, it is created by the mode, because the mode has access to the worlds in which the previews need to be created.
It's arguable whether this should even inherit from UToolTarget.
Name | Description | ||
---|---|---|---|
|
TSharedPtr< UE:... |
AppliedCanonical |
A UV layer, also have a primary UV overlay that represents the same layer, to make it possible to someday texture the unwrap. |
|
TObjectPtr< UMe... |
AppliedPreview |
3d preview of the asset with the UV layer updated, suitable for use with background ops. |
|
AssetID |
||
|
OnCanonicalModified |
||
|
TObjectPtr< UTo... |
SourceTarget |
Additional needed information. |
|
TSharedPtr< UE:... |
UnwrapCanonical |
Mesh representing the unwrapped UV layer. |
|
TObjectPtr< UMe... |
UnwrapPreview |
Preview of the unwrapped UV layer, suitable for being manipulated by background ops. |
|
UVLayerIndex |
||
|
UVToVertPosition |
Mappings used for generating and baking back the unwrap. |
|
|
VertPositionToUV |
||
|
TObjectPtr< UMe... |
WireframeDisplay |
Optional: a wireframe to track the mesh in unwrap preview. |
Name | Description | ||
---|---|---|---|
|
AppliedVidToUnwrapVids |
Get the unwrap vids corresponding to a given applied vid. |
|
|
InitializeMeshes ( |
||
|
Shutdown() |
||
|
UnwrapVidToAppliedVid ( |
Convert a vid in the unwrap mesh to the corresponding vid in the applied mesh (i.e., parent vertex of the element corresponding to the unwrap vertex). |
|
|
UpdateAllFromAppliedCanonical |
Updates the other meshes using the mesh in AppliedCanonical. |
|
|
UpdateAllFromAppliedPreview |
Updates the other meshes using the UV overlay in the live preview. |
|
|
UpdateAllFromUnwrapCanonical |
Updates the other meshes using the mesh in UnwrapCanonical. |
|
|
UpdateAllFromUnwrapPreview |
Updates the other meshes using the mesh in UnwrapPreview. |
|
|
UpdateAppliedPreviewFromUnwrapPreview |
Updates the AppliedPreview from UnwrapPreview, without updating the non-preview meshes. |
|
|
UpdateCanonicalFromPreviews |
Updates the non-preview meshes from their preview counterparts. |
|
|
UpdateFromCanonicalUnwrapUsingMeshChange ( |
Uses the stored triangles/vertices in the mesh change to update everything from the canonical unwrap. |
|
|
UpdatePreviewsFromCanonical |
Updates the preview meshes from their canonical counterparts. |
|
|
UpdateUnwrapCanonicalOverlayFromPositions |
Updates UnwrapCanonical UV Overlay from UnwrapCanonical vert positions. |
|
|
UpdateUnwrapPreviewFromAppliedPreview |
Updates only the UnwrapPreview from AppliedPreview, without updating the non-preview meshes. |
|
|
UpdateUnwrapPreviewOverlayFromPositions |
Updates UnwrapPreview UV Overlay from UnwrapPreview vert positions. |
Name | Description | ||
---|---|---|---|
|
IsValid() |
Name |
Description |
|
---|---|---|
|
FCanonicalModifiedInfo |
Information about an OnCanonicalModified broadcast. |
Name |
Description |
---|---|
FOnObjectModified |
Broadcast when the canonical unwrap or applied meshes change. |
Name |
Description |
---|---|
NONE_CHANGED_ARG |
Notes above the below convenience functions: |