UIBlock2D.Gradient
Gradient
A gradient effect, visually blended with the body Color and image (i.e. Sprite, Texture, or RenderTexture), if it exists.
Remarks
Gradient.Center.Percent and
Gradient.Radius.Percent are relative to
CalculatedSize. Mathematically speaking:
Vector2 calculatedGradientCenter = Gradient.Center.Percent * CalculatedSize.XY.Value
Vector2 calculatedGradientRadii = Gradient.Radius.Percent * CalculatedSize.XY.Value
Declaration
public ref RadialGradient Gradient { get; }