Module 

Header 
/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h 
Include 
#include "SpriteEditorOnlyTypes.h" 
[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
struct PAPER2FSpriteGeometryShape
A single piece of geometry (e.g., a polygon which may be convex or concave, a box, or a circle)
Name  Description  


bNegativeWinding 
For Polygon geometry, this tells us if the winding should be negative (CW) regardless of the order in Vertices. 


BoxPosition 
Center of the box or circle, acts as the pivot point for polygons (but may not be at the center of them) 


BoxSize 
Size of the box or major/minor dimensions of the circle Note: Only valid when GeometryType is Box or Circle 


float 
Rotation 
Rotation of the shape (in degrees) 

ShapeType 
The type of this piece of geometry. 


Vertices 
Vertices for the polygon (valid for Box and Polygon, but empty for Circle) 
Name  Description  


ConvertShapeSpaceToTextureSpace ( 


ConvertTextureSpaceToShapeSpace ( 


FSpriteGeometryShape() 


GetPolygonCentroid() 
Returns the polygon centroid in texture space. 


GetTextureSpaceVertices 


IsShapeValid() 
Is this shape valid (e.g., at least 3 vertices for a polygon)? 


SetNewPivot ( 
Sets a new pivot and adjusts all vertices to be relative to it. 