UKismetProceduralMeshLibrary::CalculateTangentsForMesh

Automatically generate normals and tangent vectors for a mesh UVs are required for correct tangent generation.

Windows
MacOS
Linux

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

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(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.

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