The "Draw" particle system emits particles for drawing. The "Eraser" collider kills the particles. Particles are emitted in a custom simulation space so the drawing can be manipulated.
Setup.mp4
Drag the Marker.cs script onto your avatar. You can customize settings for installing the marker. Some settings have tooltips for explanation.
After generating the marker, the ink and eraser emit from MarkerTarget.
Adjust the MarkerTarget transform by entering playmode with the emulator and enabling T-Pose Calibration. Enable the marker via its submenu. For the index finger setup, make sure MarkerTarget is positioned on the tip of your index finger. For the handheld pen setup, move and rotate MarkerTarget so your hand correctly holds the pen. MarkerTarget may also be freely scaled, if needed.
When finished adjusting MarkerTarget, copy its transform component to paste its values outside of playmode.
Click "Finish Setup" to finalize your marker and remove the script from your avatar.
Note
When building for Quest, you will have to remove unsupported components and shaders. The eraser does not work on Quest so drawings need to be cleared through the expression menu.
Marker is available as-is under MIT. For more information see LICENSE.