Navigation
API > API/Plugins > API/Plugins/Paper2D > API/Plugins/Paper2D/PAPER2UPaperSprite
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSprite.h |
| Include | #include "PaperSprite.h" |
void FindTextureBoundingBox
&40;
float AlphaThreshold,
FVector2D & OutBoxPosition,
FVector2D & OutBoxSize
&41;
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.