Navigation
API > API/Plugins > API/Plugins/Paper2D > API/Plugins/Paper2D/UPaperSprite
Description
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.
| Name | FindTextureBoundingBox |
| Type | function |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSprite.h |
| Include Path | #include "PaperSprite.h" |
| Source | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Private/PaperSprite.cpp |
void FindTextureBoundingBox
(
float AlphaThreshold,
FVector2D & OutBoxPosition,
FVector2D & OutBoxSize
)