IMeshUtilities::GenerateUniqueUVsForStaticMesh

Calculates (new) non-overlapping UV coordinates for the given Raw Mesh

Windows
MacOS
Linux

References

Module

MeshUtilities

Header

/Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h

Include

#include "MeshUtilities.h"

Syntax

bool GenerateUniqueUVsForStaticMesh
(
    const FRawMesh & RawMesh,
    int32 TextureResolution,
    TArray< FVector2D > & OutTexCoords
) const

Remarks

Calculates (new) non-overlapping UV coordinates for the given Raw Mesh

Returns

bool - whether or not generating the UVs succeeded

Parameters

Parameter

Description

RawMesh

Raw Mesh to generate UV coordinates for

TextureResolution

Texture resolution to take into account while generating the UVs

bMergeIdenticalMaterials

Whether faces with identical materials can be treated as one in the resulting set of unique UVs

OutTexCoords

New set of UV coordinates

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss