MakeRadialGradient
Helper method to create a radial gradient fill, using startColor and endColor to define the gradient.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
MakeRadialGradient(Color, Color, Vector2, float, Vector2, AddressMode)
Helper method to create a radial gradient fill, using startColor and endColor to define the gradient.
public static FillGradient MakeRadialGradient(Color startColor, Color endColor, Vector2 center, float radius, Vector2 focus, AddressMode addressMode = AddressMode.Clamp)
Parameters
Returns
Type | Description |
|---|---|
| FillGradient |
MakeRadialGradient(Gradient, Vector2, float, Vector2, AddressMode)
Helper method to create a radial gradient fill.
public static FillGradient MakeRadialGradient(Gradient gradient, Vector2 center, float radius, Vector2 focus, AddressMode addressMode = AddressMode.Clamp)
Parameters
Returns
Type | Description |
|---|---|
| FillGradient |