Creates a new Shape component.
Configuration for the shape
OptionalactorBlending mode of the shape
Whether the shape is disabled
OptionalfillFill color of the shape
Geometry of the shape
Opacity of the shape
Whether the shape stroke should remains 1 pixel wide regardless of the scale
OptionalrenderInternal rendering data
Sorting layer of the shape
Center point of the shape
Alignment of the stroke relative to the path
0 - Outside of the shape 0.5 - Center of the path 1 - Inside of the shape
OptionalstrokeColor of the stroke
Width of the stroke
Staticcomponent
Shape component for rendering 2D geometry.
Handles the visual representation of an actor using a shape. It can be used to render such shapes as rectangles or circles.
Example