Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshQuery-
Description
Returns the UV values associated with the three vertices of the triangle in the specified UV Channel. If the Triangle does not exist in the mesh or if no UVs are set in the specified UV Channel for the triangle, the resulting values will be (0,0) and bHaveValidUVs will be set to false.
| Name | GetTriangleUVs |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshQueryFunctions.h |
| Include Path | #include "GeometryScript/MeshQueryFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/MeshQueryFunctions.cpp |
UFUNCTION (BlueprintPure, Category="GeometryScript|MeshQueries", Meta=(ScriptMethod))
static void GetTriangleUVs
(
UDynamicMesh * TargetMesh,
UPARAM(DisplayName="UV Channel") int32 UVSetIndex,
int32 TriangleID,
FVector2D & UV1,
FVector2D & UV2,
FVector2D & UV3,
bool & bHaveValidUVs
)