Navigation
API > API/Plugins > API/Plugins/Paper2D
Method of specifying polygons for a sprite's render or collision data.
| Name | ESpritePolygonMode::Type |
| Type | enum |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h |
| Include Path | #include "SpriteEditorOnlyTypes.h" |
Syntax
namespace ESpritePolygonMode
{
enum Type
{
SourceBoundingBox,
TightBoundingBox,
ShrinkWrapped,
FullyCustom,
Diced,
}
}
Values
| Name | Remarks |
|---|---|
| SourceBoundingBox | Use the bounding box of the source sprite (no optimization) |
| TightBoundingBox | Tighten the bounding box around the sprite to exclude fully transparent areas (the default) |
| ShrinkWrapped | Shrink-wrapped geometry |
| FullyCustom | Fully custom geometry; edited by hand |
| Diced | Diced (split up into smaller squares, including only non-empty ones in the final geometry). |