gradient
The color gradient to display as a background, mutually exclusive with the asset slots. Setting an empty gradient (see BackgroundGradient.IsEmpty ) clears the slot without disturbing any assigned asset.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public BackgroundGradient gradient { get; set; }