PAPER2UPaperImporterSettings::AnalyzeTextureForDesiredMaterialType

Analyzes the specified texture in the Offset..Offset+Dimensions region and returns the best kind of material to represent the alpha content in the texture (typically masked or translucent, but can return opaque if bAnalysisCanUseOpaque is true

Windows
MacOS
Linux

References

Module

Paper2DEditor

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2DEditor/Classes/PaperImporterSettings.h

Include

#include "PaperImporterSettings.h"

Syntax

ESpriteInitMaterialType AnalyzeTextureForDesiredMaterialType
(
    UTexture * Texture,
    const FIntPoint & Offset,
    const FIntPoint & Dimensions
) const

Remarks

Analyzes the specified texture in the Offset..Offset+Dimensions region and returns the best kind of material to represent the alpha content in the texture (typically masked or translucent, but can return opaque if bAnalysisCanUseOpaque is true

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