Unity-UI-Extensions.GitHub.io

Gradient

Apply vertex colours in a gradient on any UI object


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

Apply vertex colours in a gradient on any graphic UI object


Properties

The properties of the Box Slider control are as follows:

Property Description
Gradient Mode Should the gradient work in Local or Global coordinate space
Gradient Dir The direction of the gradient: Horizontal / Vertical / Diagonal left to right / diagonally right to left
Override all color Should the control use or ignore the alpha of the original image for the effect
Vertex 1 First gradient color
Vertex 2 Second gradient color

Usage

To enable the Gradient component, simply add the component to a UI Graphic Object using: Add Component -> UI -> Extensions -> Effects -> Gradient


Video Demo

Click to play

Gradient Demo


See also


Credits and Donation

Breyer

Sourced from