This version of Unity is unsupported.

Painter2D.strokeGradient

public Gradient strokeGradient;

Description

The stroke gradient to use when using Stroke.

Setting a stroke gradient will override the currently set strokeColor. Setting a null stroke gradient will remove it and fall back on the currently set strokeColor.