Navigation
API > API/Plugins > API/Plugins/Paper2D
| Name | FSpriteGeometryCollection |
| Type | struct |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h |
| Include Path | #include "SpriteEditorOnlyTypes.h" |
Syntax
USTRUCT ()
struct FSpriteGeometryCollection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSpriteGeometryCollection() |
SpriteEditorOnlyTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AlphaThreshold | float | Alpha threshold for a transparent pixel (range 0..1, anything equal or below this value will be considered unimportant) | SpriteEditorOnlyTypes.h |
|
| bAvoidVertexMerging | bool | Experimental: Hint to the triangulation routine that extra vertices should be preserved. | SpriteEditorOnlyTypes.h |
|
| DetailAmount | float | Amount to detail to consider when shrink-wrapping (range 0..1, 0 = low detail, 1 = high detail) | SpriteEditorOnlyTypes.h |
|
| GeometryType | TEnumAsByte< ESpritePolygonMode::Type > | The geometry type (automatic / manual) | SpriteEditorOnlyTypes.h |
|
| PixelsPerSubdivisionX | int32 | Size of a single subdivision (in pixels) in X (for Diced mode) | SpriteEditorOnlyTypes.h |
|
| PixelsPerSubdivisionY | int32 | Size of a single subdivision (in pixels) in Y (for Diced mode) | SpriteEditorOnlyTypes.h |
|
| Shapes | TArray< FSpriteGeometryShape > | List of shapes. | SpriteEditorOnlyTypes.h |
|
| SimplifyEpsilon | float | This is the threshold below which multiple vertices will be merged together when doing shrink-wrapping. Higher values result in fewer vertices. | SpriteEditorOnlyTypes.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCircleShape
(
FVector2D Position, |
SpriteEditorOnlyTypes.h | ||
void AddRectangleShape
(
FVector2D Position, |
SpriteEditorOnlyTypes.h | ||
bool ConditionGeometry() |
Conditions this geometry collection (turning Polygons back to Boxes if they meet the definition of a box, etc...) Returns true if something was modified | SpriteEditorOnlyTypes.h | |
void Reset() |
Empties this geometry collection, resetting the GeometryType to TightBoundingBox. | SpriteEditorOnlyTypes.h | |
void Triangulate
(
TArray< FVector2D >& Target, |
Takes all polygon shapes and generates a list of triangles from them. | SpriteEditorOnlyTypes.h |