PAPER2UPaperSprite::FindTextureBoundingBox

Evaluates the SourceUV/SourceDimensons rectangle, finding the tightest bounds that still include all pixels with alpha above AlphaThreshold.

Windows
MacOS
Linux

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSprite.h

Include

#include "PaperSprite.h"

Syntax

void FindTextureBoundingBox
(
    float AlphaThreshold,
    FVector2D & OutBoxPosition,
    FVector2D & OutBoxSize
)

Remarks

Evaluates the SourceUV/SourceDimensons rectangle, finding the tightest bounds that still include all pixels with alpha above AlphaThreshold. The output box position is the top left corner of the box, not the center.

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