Navigation
API > API/Runtime > API/Runtime/TextureUtilitiesCommon
Description
Checks if the given mip view of the given texture looks like if contains normal map data, and if so updates the texture compression settings to be for a normal map. Additionally fires off a UI notification with a revert option, as this is a guess and could very well be wrong.
This does not examine the entire mip but instead checks small chunks across the mip.
This should be called when texture properties are safe to edit (i.e. between Pre/PostEditChange).
| Name | UE::NormalMapIdentification::HandleAssetPostImport |
| Type | function |
| Header File | /Engine/Source/Runtime/TextureUtilitiesCommon/Public/NormalMapIdentification.h |
| Include Path | #include "NormalMapIdentification.h" |
| Source | /Engine/Source/Runtime/TextureUtilitiesCommon/Private/NormalMapIdentification.cpp |
namespace UE
{
namespace NormalMapIdentification
{
bool UE::NormalMapIdentification::HandleAssetPostImport
(
UTexture * InTexture,
const FImageView & InMipToAnalyze
)
}
}
true if the asset was identified as normal