Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
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
Refund policy
Secure checkout:

License agreement
Standard Unity Asset Store EULALicense 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
Language
Feedback
Partners Program
PartnersUSD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR