Search Unity

[RELEASED] Scratch Сard

Discussion in 'Assets and Asset Store' started by kmedved, Feb 3, 2017.

  1. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189




    Scratch Card - is an 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/ScratchCard/2.0/index.html
    Unity Asset Store URL: https://assetstore.unity.com/packages/slug/228309
    Documentation: https://unitymedved.bitbucket.io/ScratchCard/2.0/Docs/index.html

    Features:
    ✔️ 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
     
    Last edited: Aug 16, 2022
  2. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 1.0.1 submitted!
     
  3. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 1.1 submitted!
     
  4. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 1.1.1 submitted!
     
  5. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 1.2.1 submitted!
    Now, supports Image component!
     
  6. StanislaVKk

    StanislaVKk

    Joined:
    Aug 19, 2015
    Posts:
    1
    Hi, I have a problem with your asset. It stops calculate progress. It happens when my device (Samsung A5 2017) updated to Android 8.0.
     
  7. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    I updated asset with fix for Android 8.0+.
     
  8. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.3 submitted:
    - added Lightweight Render Pipeline support;
    - fixed bugs;
    - improved performance.
     
  9. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.4 submitted:
    - added support for textures with transparent areas, with correct progress calculation;
    - multi-touch support added;
    - fixed scratch card reset bug.
     
  10. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.5 released:
    - added full support for textures with transparent areas, with correct progress calculation;
    - added ability to change brush scale;
    - added editor script.
     
  11. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.6 submitted:
    - added the ability to restore surface using brush, check the demo!
     
  12. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 1.7 released!

    What's new
    :
    - updated manual (please, read "Troubleshooting" paragraph, if you use ScratchCard on Android);
    - added field to disable input;
    - fixed WebGL input.

    Huge update coming soon, stay tuned!
     
    Last edited: Jun 25, 2020
  13. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 1.7.1 released!

    What's new:
    - moved ScratchCard/EraseProgress initialization from MonoBehaviour.Awake() to MonoBehaviour.Start() methods to prevent Canvas issues.

    Huge update coming soon, stay tuned!
     
  14. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.8 released!

     
  15. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.8.1 released!

     
  16. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version v1.8.2 released!

     
  17. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 2.0 is out!

    What's new:
    Core:
    - New feature: scratch animations. Scratch cards automatically, use built-in animations, or create your own in a few clicks;
    - Added sprite atlases support;
    - Added support for the new Input System and Pen support;
    - Added ability to block Canvas raycasts for all supported components;
    - Improved performance and memory usage, decreased allocations count;
    - Fixed the bug when a brush with a large size do not scratch the surface;
    - New demo scene.

    Other:
    - Updated manual;
    - API changes (see "v.2.0_API_Changes.pdf" for details).
     
    Last edited: Dec 21, 2022
  18. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 2.1 is out!

    What's new:
    Core:
    - Added ability to set scratching progress accuracy: Default or High. With High accuracy, you can get pixel precision progress;
    - Improved built-in scratch animations compatibility with Unity 2020.3.x-2021.1.x.

    Other:
    - Updated manual.
     
  19. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 2.1.1 is out!

    What's new:
    Core:
    - Fixed minor issues;
    - ScratchCardManager.Init() method is public. You can initialize it from code now;
    - Fixed input in WebGL builds.

    Editor:
    - Fixed minor issues.
     
    Last edited: Feb 22, 2023
  20. kmedved

    kmedved

    Joined:
    Aug 18, 2016
    Posts:
    189
    Version 2.1.2 is out!

    What's new:
    Core:
    - Fixed the bug when the scratch position wasn't reset on ScratchCard component disable;
    - Fixed the bug when Scratch Surface was rendered above 3D objects, ignoring Z-test.