unreal.SpriteGeometryShape
¶
- class unreal.SpriteGeometryShape¶
Bases:
StructBase
A single piece of geometry (e.g., a polygon which may be convex or concave, a box, or a circle)
C++ Source:
Plugin: Paper2D
Module: Paper2D
File: SpriteEditorOnlyTypes.h
Editor Properties: (see get_editor_property/set_editor_property)
box_position
(Vector2D): [Read-Only] Box Position: Center of the box or circle, acts as the pivot point for polygons (but may not be at the center of them)box_size
(Vector2D): [Read-Only] Box Size: Size of the box or major/minor dimensions of the circle Note: Only valid when GeometryType is Box or Circlenegative_winding
(bool): [Read-Only] Negative Winding: For Polygon geometry, this tells us if the winding should be negative (CW) regardless of the order in Verticesrotation
(float): [Read-Only] Rotation: Rotation of the shape (in degrees)shape_type
(SpriteShapeType): [Read-Only] Shape Type: The type of this piece of geometryvertices
(Array[Vector2D]): [Read-Write] Vertices: Vertices for the polygon (valid for Box and Polygon, but empty for Circle)