Requires Unity 5.4.5 or higher.
Soft Mask is a UI component that masks child elements. It works almost like standard Unity’s UI Mask but supports gradients and semi-transparency. 软掩码是屏蔽子元素的UI组件。它几乎像标准的Unity UI Mask一样工作,但是支持渐变和半透明性。
? Easy to use: just drop it on the Game Object in the same way as Unity's standard Mask.
? Supports Image, RawImage, Sprite, and Texture.
? Works with TextMesh Pro!
? Allows separation of a mask from the masked hierarchy.
? Can be easily supported in your shaders.
? Fully real-time: create, destroy, enable, disable, move, rotate and reorder a mask and UI elements at runtime.
? Can restrict input processing to only visible parts of the masked UI.
? Adjustable mask sampling: use black and white images, images with transparency or set weight of each color channel manually.
It’s intended to use with Unity’s UI only. No Sprite or 3D support is included.