[Unity asset · Asset Store · Coming soon]

Signature Pad for Unity

Add a signature pad to a uGUI canvas or a UI Toolkit document. The user signs with a mouse, a finger or a stylus and gets smooth, pen-like ink; one call returns a trimmed transparent PNG, a Texture2D, an SVG, or JSON stroke data that can be loaded back and replayed with its timing.

Unity 6000.0.84f1+

This opens your email app. If nothing opens, write to luanrobs@gmail.com. I will reply once, on launch day. I will not add you to a list.

QUICK START

using System.IO;
using Luanrobs.Signature;
using UnityEngine;

public class SaveSignature : MonoBehaviour
{
    [SerializeField] private SignaturePad pad;

    public void Save()
    {
        if (!pad.Validate().IsValid)
        {
            Debug.Log("Please sign first.");
            return;
        }

        File.WriteAllBytes(Path.Combine(Application.persistentDataPath, "signature.png"), pad.ExportPng());
        File.WriteAllText(Path.Combine(Application.persistentDataPath, "signature.json"), pad.ExportJson());
    }
}

TESTED ON

Platform Status
Windows Editor and Mono players, Unity 6000.3.12f1 and 6000.0.84f1 All 269 EditMode and 45 PlayMode tests pass on both, also in new projects that installed the package from its .tgz file. In Windows 11 players, a test driver walked the five demo scenes (uGUI and UI Toolkit pads, replay, every export, save and reload) and passed.
Windows player (IL2CPP), Unity 6000.3.12f1 The test driver passed. Not run with IL2CPP on 6000.0.84f1.
Android emulators (IL2CPP) API 36 with Unity 6000.3.12f1 and API 24 with Unity 6000.0.84f1: the test driver passed on both, on the package as it was before the fixes of 2026-10-20.
Galaxy S23 (Android 16, arm64): test driver and adb touch input passed With a Unity 6000.3.12f1 IL2CPP build, the test driver passed on the device, and touch input sent with adb input drew, undid, redid, saved and cleared strokes in the uGUI and UI Toolkit forms; the exported JSON matched the strokes sent.
Without uGUI, with the Input System only, and with Domain Reload disabled Unity 6000.3.12f1: without uGUI the package compiles and 252 EditMode tests pass; with Active Input Handling set to Input System the tests and the test driver pass; three Play sessions in a row passed with Domain Reload disabled.
Other platforms (macOS, Linux, iOS, WebGL and the rest) not run

Tested with version 1.0.0

WHAT IT DOES NOT DO

  • Not included: placing signatures onto existing PDF pages, cryptographic or legally qualified digital signatures, handwriting recognition, painting tools (brushes, fill, layers, eraser).

  • One pointer draws at a time; several fingers at once are not supported.

  • Pen pressure was exercised with synthetic events only; no physical stylus was available.

  • Clear cannot be undone, and ink exists in Play mode only: in Edit mode a pad shows its background colour.

  • Drawing, loading and exporting run on the main thread and take longer with more ink. FromJson and LoadJson refuse data beyond fixed limits (10,000 strokes, 100,000 points).

Full list in the manual

WHAT IS IN THE PACKAGE

  • C# source of the runtime (stroke engine, rasteriser, PNG / SVG / JSON exports, uGUI component, UI Toolkit element) and of the Editor tools, with EditMode and PlayMode tests.

  • The demo sample: five scenes.

  • The manual, as Markdown.

  • Everything is C#: there is no native code, shader, font or third-party code.

SUPPORT

I answer the support email myself, in English or Portuguese: luanrobs@gmail.com

To reproduce a problem I need: Unity version, package version, platform and OS version, the Console log, and the steps to reproduce it.

Purchases, licenses and refunds are handled by the Unity Asset Store.

HOW IT WAS BUILT

This package was developed with the assistance of generative AI tools.

The code, the tests, the documentation and the sample content were generated with Claude (through Claude Code) under my direction, then run and tested as listed under "What was tested".

luanrobs is one developer: me. If something doesn't work for you, email me and I'll do my best to fix it.

CHANGELOG

1.0.0 · 2026-10-15

  • SignaturePad (uGUI, Add Component > luanrobs > Signature Pad): a MaskableGraphic that the user signs in with a mouse, a finger or a stylus. Works under Screen Space Overlay, Screen Space Camera and World Space canvases. Clear, Undo, Redo and StopReplay can be wired to a Button's On Click () list. Optional Placeholder object shown while the pad is empty. UnityEvents OnStrokeStarted, OnStrokeEnded, OnChanged, OnReplayFinished.
  • SignaturePadElement (UI Toolkit, [UxmlElement]): the same pad from UXML (<Luanrobs.Signature.SignaturePadElement />) or from code, with UXML attributes for every setting, a built-in baseline and "Sign here" hint, and the USS classes luanrobs-signature-pad, __ink, __line, __hint.
  • ISignaturePad, implemented by both views: pen colour, minimum and maximum pen width, background colour, pen pressure on or off, read-only; Clear, Undo, Redo; state queries (IsEmpty, StrokeCount, Bounds, IsDrawing, IsReplaying, CanUndo, CanRedo); events StrokeStarted, StrokeEnded, Changed, ReplayFinished.

Full changelog