USkeletalMesh::PostLoadVerifyAndFixBadTangent

This function will ensure we have valid tangent in all LODs.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/SkeletalMesh.h

Include

#include "Engine/SkeletalMesh.h"

Source

/Engine/Source/Runtime/Engine/Private/SkeletalMesh.cpp

Syntax

void PostLoadVerifyAndFixBadTangent()

Remarks

This function will ensure we have valid tangent in all LODs. if we found an invalid tangent axis we will try to set it with the cross product of the two other axis. If the two other axis are also bad it will simply apply the triangle normals which will faceted the mesh. It will validate tangents only for asset that do not have source build data, this mean asset imported before the build refactor done in the UE version 4.24) @note - if it found a bad normal it will LOG a warning to let the user know he have to re-import is mesh.

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