Easy-to-use asset, which allows you to create scratch cards! All you need to do is drag & drop a prefab and set a scratch card sprite. Your scratch card is ready! :)
WebGL Demo: http://unitymedved.bitbucket.io/Scrat...
Asset Store: https://assetstore.unity.com/packages...
🚀 High performance, mobile-friendly
Asset uses GPU for scratching, which provides high performance
🖌 Brushes support
Choose brush and scratch as you want! You can easily add your custom brushes
✔️ Detects the percentage of covering that remains
🌟 Easy to set up
Drag and drop prefab, adjust the parameters, and there you go!
✏️ Two modes: Erase and Restore
You can scratch your surface or restore it using a brush!
🧩 Supports multiply components
Works with MeshRenderer, SpriteRenderer, UI Image
🏞 Works in 2D and 3D
No matter - a perspective camera or orthographic, it will work equally well
🔅 Supports images with transparent areas
[NEW] 🗺️ Supports scratch animations
Use scratch animations to automatically scratch the card or part of it!
🔢 Supports work with multiple scratch cards at the same time
💻 Supports scratching from code
🛠 Works with any render pipeline
Standard, Universal Render Pipeline (URP), and High Definition Render Pipeline (HDRP) are supported
[NEW] 🖲️ Input System supported
Asset works with a mouse, touch device, pen (tablet stylus like Apple Pen), or any other input device of the new Input System. The old Input Manager is supported
🖐🏻 Supports multi-touch
[NEW] 🗺️ Sprite Atlases are supported
You can choose sprite from the atlas to use as a scratch card
📠 Long-Term Support
Be sure that you'll get support for new unity versions and features
📖 Full C# source code and example scene included