PAPER2UPaperSprite::FindTextureBoundingBox

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

Choose your operating system:

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.