Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Drawing
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UUVLayoutPreview
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/UVLayoutPreview.h |
| Include | #include "Drawing/UVLayoutPreview.h" |
Syntax
UCLASS (Transient)
class UUVLayoutPreview : public UObject
Remarks
UUVLayoutPreview is a utility object that creates and manages a 3D plane on which a UV layout for a 3D mesh is rendered. The UV layout
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UMaterialInterface > | BackingRectangleMaterial | Configure the backing rectangle material | |
| bool | bSettingsModified | ||
| bool | bShowBackingRectangle | Configure whether the backing rectangle should be shown | |
| FViewCameraState | CameraState | ||
| UE::Geometry::FFrame3d | CurrentWorldFrame | ||
| TObjectPtr< UMeshElementsVisualizer > | MeshElementsVisualizer | MeshElementsVisualizer references the PreviewMesh to handle drawing the wireframes for UVs | |
| TObjectPtr< UPreviewMesh > | PreviewMesh | PreviewMesh is initialized with a copy of an input mesh with UVs mapped to position, ie such that (X,Y,Z) = (U,V,0) | |
| TObjectPtr< UUVLayoutPreviewProperties > | Settings | Visualization settings | |
| FComponentMaterialSet | SourceMaterials | ||
| UE::Geometry::FFrame3d | SourceObjectFrame | ||
| UE::Geometry::FAxisAlignedBox3d | SourceObjectWorldBounds | ||
| TObjectPtr< UTriangleSetComponent > | TriangleComponent | Set of additional triangles to draw, eg for backing rectangle, etc |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CreateInWorld
(
UWorld* World |
Create preview mesh in the World with the given transform | |
| void | Disconnect () |
Remove and destroy preview mesh | |
| float | |||
| void | OnTick
(
float DeltaTime |
Tick the UV Layout Preview, allowing it to update various settings | |
| void | |||
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Render the UV Layout Preview, allowing it to update various settings | |
| void | SetCurrentCameraState
(
const FViewCameraState& CameraState |
Update the current camera state, used to auto-position the UV layout preview | |
| void | SetSourceMaterials
(
const FComponentMaterialSet& MaterialSet |
Configure material set for UV-space preview mesh | |
| void | SetSourceWorldPosition
(
FTransform WorldTransform, |
Specify the current world transform/bounds for the target object. | |
| void | SetTransform
(
const FTransform& UseTransform |
Set the transform on the UV Layout preview mesh | |
| void | SetVisible
(
bool bVisible |
Set the visibility of the UV Layout preview mesh | |
| void | UpdateUVMesh
(
const FDynamicMesh3* SourceMesh, |
Notify the UV Layout Preview that the source UVs have been modified |