IMeshUtilities::GenerateUniqueUVsForStaticMesh

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

Unreal Engine C++ API Reference > Developer > MeshUtilities > IMeshUtilities > GenerateUniqueUVsForStaticMesh

References

   
Module MeshUtilities
Header /Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h
Include #include "MeshUtilities.h"
bool GenerateUniqueUVsForStaticMesh
(
    const [FRawMesh](API\Runtime\RawMesh\FRawMesh) & RawMesh,
    int32 TextureResolution,
    [TArray](API\Runtime\Core\Containers\TArray)< FVector2f > & OutTexCoords
) const

Remarks

Calculates (new) non-overlapping UV coordinates for the given Raw Mesh bool - whether or not generating the UVs succeeded

Parameters

Name 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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library