Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
VFX
Shaders
1/2
This simple shader will dynamically swap the Color of UI Text between two user-defined colors, based on which of the two has a higher contrast with the background color. This is very useful if you want the text to be readable, regardless of the background color. Currently only works for certain on Desktop. Will be testing on IOS and Android and updating as necessary very soon! I will also be releasing a shader pack which will incorporate this and other shaders which people will hopefully find helpful (or at least interesting).

Background Based Text Color Swap

(not enough ratings)
10 users have favourite this asset
(10)
$5
Taxes/VAT calculated at checkout
License type: Single Entity
Single Entity
Recommended for individuals and small businesses.
Multi Entity
Recommended for large enterprises working across multiple locations.
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
20.8 KB
Latest version
0.3
Latest release date
Feb 7, 2017
Original Unity version
5.5.1
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
$5