Component that holds data for rendering a basic shape.
Fill colour.
Optional
Reference to the GameObject this component is attached to.
The type of shape to draw.
Height (for rect) or unused (for circle).
Width (for rect) or radius (for circle).
Draws the shape to the canvas.
The canvas 2D rendering context.
Lifecycle hook called when the component is added to a GameObject.
Component that holds data for rendering a basic shape.