unreal.SpritePolygonMode

class unreal.SpritePolygonMode

Bases: unreal.EnumBase

Method of specifying polygons for a sprite’s render or collision data

C++ Source:

  • Plugin: Paper2D

  • Module: Paper2D

  • File: SpriteEditorOnlyTypes.h

DICED

Diced (split up into smaller squares, including only non-empty ones in the final geometry). This option is only supported for Render geometry and will be ignored for Collision geometry.

Type

4

FULLY_CUSTOM

Fully custom geometry; edited by hand

Type

3

SHRINK_WRAPPED

Shrink-wrapped geometry

Type

2

SOURCE_BOUNDING_BOX

Use the bounding box of the source sprite (no optimization)

Type

0

TIGHT_BOUNDING_BOX

Tighten the bounding box around the sprite to exclude fully transparent areas (the default)

Type

1