static void Shadow (Rect rect, Color color, float blur, float spread, Vector2 offset, float cornerRadius, bool inset)

Parameters

NameTypeDescription
rect Rect The rectangle to cast the shadow from, in panel-local coordinates.
color Color Shadow color.
blur = 0 float Blur radius in pixels. Higher values produce softer shadows.
spread = 0 float Spread distance in pixels. Positive values expand the shadow, negative values shrink it.
offset = null Vector2 Shadow offset from the rectangle position.
cornerRadius = 0 float Corner radius to match rounded rectangles.
inset = False bool If true, draws an inner shadow instead of a drop shadow.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.