English | 日本語
TapEffect is a Unity package that displays a ripple tap interaction effect on Unity UI (uGUI).
When the user taps or clicks on the screen, a ripple animation is rendered using a custom shader. Multiple simultaneous tap effects are supported, with configurable maximum count and lifetime.
- Unity 2021.3 or later
- UniTask 2.5.10 or later
- ObjectReference 1.0.0 or later
Open Window > Package Manager, select [+] > Add package from git URL, and enter the following URL:
https://github.com/AndanteTribe/TapEffect.git?path=src/TapEffect.Unity/Packages/jp.andantetribe.tapeffect
- Add the
TapEffectcomponent to a UI GameObject that is a child of a Screen Space - Overlay Canvas (e.g., a full-screen panel). - Assign a material using the
_material(IObjectReference<Material>) field in the Inspector. - Adjust
Max CountandLifetimeas needed.
Note: It is recommended to place the
TapEffectcomponent on a higher-layer UI element so that ripples render on top of other UI elements.
| Property | Description |
|---|---|
MaxCount |
The maximum number of simultaneous tap effects. Changing this at runtime resets the internal graphics buffer counter. |
Lifetime |
The duration in seconds of each tap ripple animation. |
raycastTarget |
Always false; the component never blocks raycasts. |
This library is released under the MIT license.