unreal.SpritePolygonMode
¶
- class unreal.SpritePolygonMode¶
Bases:
EnumBase
Method of specifying polygons for a sprite’s render or collision data
C++ Source:
Plugin: Paper2D
Module: Paper2D
File: SpriteEditorOnlyTypes.h
- DICED: SpritePolygonMode¶
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: SpritePolygonMode¶
Fully custom geometry; edited by hand
- Type:
3
- SHRINK_WRAPPED: SpritePolygonMode¶
Shrink-wrapped geometry
- Type:
2
- SOURCE_BOUNDING_BOX: SpritePolygonMode¶
Use the bounding box of the source sprite (no optimization)
- Type:
0
- TIGHT_BOUNDING_BOX: SpritePolygonMode¶
Tighten the bounding box around the sprite to exclude fully transparent areas (the default)
- Type:
1