Sketch Create Canvas
Create a Processing-style sketch canvas on a Sketch Component.
Use this near the start of your sketch setup so later draw actions have a canvas to work with.
Parameters
| Parameter | Description |
|---|---|
| Sketch Component | Sketch Component to configure. |
| Width | Canvas width in sketch pixels. |
| Height | Canvas height in sketch pixels. |
| Store Sketch Component | Optional output that stores the Sketch Component reference for use by other FSMs. |
Notes
- Default size is
640 x 480. - Recreating the canvas replaces the existing texture with a new one at the new size.
- If the Sketch Component is set to auto-display, it will bind the new canvas to a
SpriteRenderer,RawImage, or renderer material.