Alpha Raycaster

Elringus

(29)
$24
Publisher Elringus
File size 1.43MB
Number of files 11
Latest version 1
Latest release date 2021-03-29 09:29:37
First release date 2015-01-27 10:44:39
Supported Unity versions 2018.4.2 or higher
Alpha Raycaster is a custom raycaster for UI texture-based elements built upon default Graphic Raycaster. It checks texture transparency, before deciding whether to send input events for targeted object, which allows a precise interaction with objects that have a non-rect shapes (like circles, triangles, map regions, text, etc).

WEBGL DEMO  •  DOCUMENTATION

Features:
• Make buttons and any other interactable UI objects of any shape
• Compatible with both mouse and touch input
• Handles any sprite transformations
• Supports all the sprite modes (including filled, tiled, sliced) and sprite atlases
• Works with orthographic and perspective camera modes
• Demo scene with examples included

Be aware, that the plugin only works with Image, RawImage and Text UnityEngine.UI (uGUI) components.

Top Publisher Assets