Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ollyisonit/unityalphacorrector
Script that lets you set Unity images to have alpha values greater than one. This is useful for fixing transparent UI elements that look faded in linear color space.
https://github.com/ollyisonit/unityalphacorrector
unity unity-editor unity-scripts unity3d
Last synced: about 2 months ago
JSON representation
Script that lets you set Unity images to have alpha values greater than one. This is useful for fixing transparent UI elements that look faded in linear color space.
- Host: GitHub
- URL: https://github.com/ollyisonit/unityalphacorrector
- Owner: ollyisonit
- License: gpl-3.0
- Created: 2020-07-19T03:56:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T06:22:08.000Z (9 months ago)
- Last Synced: 2024-04-03T05:25:54.222Z (9 months ago)
- Topics: unity, unity-editor, unity-scripts, unity3d
- Language: C#
- Homepage:
- Size: 508 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Alpha Corrector
Script that lets you set Unity images to have alpha values greater than one. This is useful for fixing transparent UI elements that look faded in linear color space.## How It Works
When your Unity project is set to use linear color space, it handles colors differently from how your graphic design applications might. This can cause transparent images in Unity to appear significantly lighter than they do in your graphic design application. For example, this is the same drop shadow as it appears in Affinity Designer and Unity:
![](readme-assets/DesignVsUnity.jpg)
The Alpha Corrector solves this by allowing you to set the "alpha" of your image to a number greater than one by creating duplicates of the image and stacking them on top of each other. This has the effect of darkening the transparent parts of the image.
![](readme-assets/UnityAlphaCorrectorDemo.gif)
## Usage
Attach the Alpha Corrector component to the image your wish to darken, and then use the Alpha slider to adjust the darkness of the image. This will create duplicate AlphaObjects as children of your original images. Do not edit these, and do not add any other objects as child objects of the image that you are modifying.
## Installation
[Download](https://github.com/ollyisonit/UnityAlphaCorrector/releases/latest) or clone this repository and place it somewhere in your Unity project's assets folder.