Navigation
Unreal Engine C++ API Reference > Plugins > ProceduralMeshComponent > UKismetProceduralMeshLibrary
References
Module | ProceduralMeshComponent |
Header | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/KismetProceduralMeshLibrary.h |
Include | #include "KismetProceduralMeshLibrary.h" |
Source | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Private/KismetProceduralMeshLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Components|ProceduralMesh",
Meta=(AutoCreateRefTerm="SmoothingGroups,UVs"))
static void CalculateTangentsForMesh
(
const TArray< FVector > & Vertices,
const TArray< int32 > & Triangles,
const TArray< FVector2D > & UVs,
TArray< FVector > & Normals,
TArray< FProcMeshTangent > & Tangents
)
Remarks
Automatically generate normals and tangent vectors for a mesh UVs are required for correct tangent generation.