文档

Unity Engine


User Manual

Script Reference

Unity Engine


MakeRadialGradient

Helper method to create a radial gradient fill, using startColor and endColor to define the gradient.
阅读时间1 分钟最后更新于 22 天前

Definition

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

startColor


endColor


center


radius


focus


addressMode

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

gradient


center


radius


focus


addressMode

Returns

Type

Description

FillGradient