Navigation
API > API/Developer > API/Developer/MeshUtilities > API/Developer/MeshUtilities/IMeshUtilities > API/Developer/MeshUtilities/IMeshUtilities/GenerateUniqueUVsForStaticMesh
References
| Module | MeshUtilities |
| Header | /Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h |
| Include | #include "MeshUtilities.h" |
bool GenerateUniqueUVsForStaticMesh
&40;
const FRawMesh & RawMesh,
int32 TextureResolution,
TArray< FVector2f > & OutTexCoords
&41; 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 |