Version: Unity 6.7 LTS (6000.7)
LanguageEnglish
  • C#

BoxShadow

struct in UnityEngine.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Script interface for VisualElement box-shadow style property IStyle.boxShadow.

The default value draws no shadow and is equivalent to the USS keyword none.

Properties

Property Description
blurRadius The blur radius of the shadow, in pixels. Negative values are not allowed.
color The color of the shadow.
inset When true, the shadow is drawn inside the element's border instead of outside of it.
offset The offset of the shadow, in pixels. Positive values move the shadow right and down.
spreadRadius The spread radius of the shadow, in pixels. Positive values grow the shadow, negative values shrink it.