FromGradient(BackgroundGradient)
Creates a background from a BackgroundGradient.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static Background FromGradient(BackgroundGradient g)
Parameters
The gradient to use as a background. An empty gradient yields an empty background.
Returns
Type | Description |
|---|---|
| Background | A new background object. |