BackgroundGradientStop
A single color stop in a BackgroundGradient.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<BackgroundGradientStop>
public struct BackgroundGradientStop : IEquatable<BackgroundGradientStop>
Fields
Value | Description |
|---|---|
| color | Color of the stop. |
| position | Position of the stop along the gradient axis. Interpretation depends on _positionIsPercent: when true, expressed as a fraction in [0,1]; when false, expressed as a length in element-local pixels. |
| positionIsPercent | True when _position is a percentage (fraction of the gradient extent). |