What’s this? #
Virtual Shape Drawer is a widget class that displays the user’s drawing and optionally a virtual shape of your choice. Virtual Shape Drawer is still in the experimental stage and needs to be improved.
Drawer settings #
- Dot Brush : Texture or material used for point.
- Draw Line Size : Line size.
- Draw Brush Size : Size of dot brush.
- Draw Line Color : Line color
- Draw Brush Color : Color of dot brush
- Draw Lines : Whether or not drawer should paint lines.
- Draw Points : Whether or not drawer should paint points.
Drawer functions #
- Show Virtual Shape Guide : Paint the virtual shape you want as guide.
- Hide Virtual Shape Guide : Hide guide
- Recognizion Ready : Return true if recognizion is ready (the user no longer draws. Note that the user can resume drawing).
How to add to player screen? #
Simply call Add Drawer with Touch Interface Subsystem and select Drawer class you want to use. The drawer class does not interfere with UMG or the touch interface. It does not intercept any input, and its visibility is Not Hit Testable.
Custom drawer class #
Simple create a widget class that inherit from Virtual Shape Drawer.