Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GradientType

Specifies the type of gradient to use for color interpolation.
Read time 1 minuteLast updated 6 days ago

Definition

public enum GradientType

Remarks

GradientType.Linear creates a gradient that transitions colors along a straight line. GradientType.Radial creates a gradient that radiates colors outward from a central point.

Fields

Value

Description

LinearA gradient that transitions colors along a straight line.
RadialA gradient that radiates colors outward from a central point.