Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
GUI
1/4
Punch holes into your UI with a mask that hides everying OUTSIDE of the mask image.
Render pipeline compatibility
The Built-in Render Pipeline is Unityโ€™s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.30f1
Compatible
Compatible
Compatible
Description

Links: Manual


๐Ÿญ This asset is part of the UI Bundle๐Ÿญ


InverseMask hides anything inside the masked ui area and shows everything outside.


โœ” Code & Code-Less options

You don't like foreign code in your project? No problem! Check out the NoCodeDemo in the examples.


โœ” Non-destructive

Unlike other masking solutions this one leaves your materials alone. Not extra shaders, no changes to your assets!


โœ” URP / HDRP / BuiltIn Support

Works with all render pipelines.


โœ” Sprite Mesh shapes

Use any of your images or one of the predefined resolution-independent sprite meshes.


โœ” Content and masks can be moved independently

No parent/child depenency in the hierarchy.


โœ” Punch as many holes as you like

Automatically merges mask objects into one mask.


โœ” Full Source Code

Comments in the code explain everything. Uses assembly definitions to improve compile times.


I publish this template with full source code because as a developer I know how annoying it is to not have source code access. If you like it then please remind others to purchase the plugin. Don't just copy and paste it everywhere. Thank you โค๏ธ


โœ” Demos included

Under Assets/Kamgam/InvertedMask/Examples you will find some scenes with examples. You can copy the mask from there.


โœ” Supports Unity 2020, 2021, 2022, 2023, Unity 6, LTS

Please try upgrading to the newest LTS of your Unity release. Unity BETA release are not officially supported (i.e. I am not testing those regularly).



โš ๏ธ ๏ธN O T I C E

The InverseMask uses the same stencil buffer approach as Unitys own UI Mask. Therefore it also does not support soft masks.


Inverse UI masks do not support stacking with Unitys own native UI masks. They are not in conflict, yet if you decide to put an inverse UI mask into a Unity mask it will not be masked by the Unity mask.



โš™๏ธ Installation

Download the Asset and import it into your project.

You are done, no additional setup is needed.



โœ๏ธ Usage

Step 1: Create a new empty GameObject.

Step 2: Add the "InvertedMask" Component.

Step 3: Click the "Add Hole" and "Add Content" button.

Step 4: You are done.



โ˜Ž๏ธ Support

If you have any questions please write to office[at]kamgam.com. Please be patient, replies may take a few days. Please try upgrading to the most recent Unity LTS release and the most recent version of the asset before contacting support. Please include your Asset Store Order Nr in your request.



Hey, if you like this asset then maybe you'll like these too:


โš™ Settings Generator

One Settings UI + API for all render pipelines.


โœ๏ธ Smart UI Selection

Skip the hierarchy search. What you click is what you select.


๐Ÿน Power Pivot

Edit, Rotate, Scale, Snap & Pivot Editor


๐Ÿ˜ฒ UGUI Blurred Background

Blurred backgrounds for UI.



Technical details

Inverse UI masking without touching your materials or shaders.

Full source code included.

Use multiple masks at once (you can stack them).

Inverse UI Mask

(not enough ratings)
23 users have favourite this asset
(23)
$19.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
1.5 MB
Latest version
1.3.0
Latest release date
Apr 4, 2024
Original Unity version
2020.3.30
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright ยฉ 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR