Wiki

Clone wiki

Unity-UI-Extensions / Controls / Gradient

Gradient

==============

Apply vertex colours in a gradient on any UI object


Contents

1 Overview

2 Properties

3 Usage

4 Video Demo

5 See also

6 Credits and Donation

7 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

Updated