UStaticMesh::SetUVChannel

Sets the texture coordinates at the specified UV channel index on the given LOD of a StaticMesh.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h

Include

#include "Engine/StaticMesh.h"

Source

/Engine/Source/Runtime/Engine/Private/StaticMesh.cpp

Syntax

bool SetUVChannel
(
    int32 LODIndex,
    int32 UVChannelIndex,
    const TMap< FVertexInstanceID, FVector2D > & TexCoords
)

Remarks

Sets the texture coordinates at the specified UV channel index on the given LOD of a StaticMesh.

Returns

true if the UV channel could be set.

Parameters

Parameter

Description

LODIndex

Index of the StaticMesh LOD.

UVChannelIndex

Index where to remove the UV channel.

TexCoords

The texture coordinates to set on the UV channel.

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