Struct BoxStyle
The look of the element's box. Drawn by the uber shader without breaking the batch.
Assembly: Yaui.dll
View Source
Declaration
[Serializable]
public struct BoxStyle
Properties
Default
View Source
Declaration
public static BoxStyle Default { get; }
Fields
backgroundColor
View Source
Declaration
public Color backgroundColor
cornerRadius
x: top-left, y: top-right, z: bottom-right, w: bottom-left.
View Source
Declaration
public Vector4 cornerRadius
borderWidth
Also insets the content in the layout, like CSS.
View Source
Declaration
public float borderWidth
borderColor
View Source
Declaration
public Color borderColor
shadowColor
No shadow when the alpha is zero.
View Source
Declaration
public Color shadowColor
shadowOffset
View Source
Declaration
public Vector2 shadowOffset
shadowBlur
Gaussian sigma in canvas units.
View Source
Declaration
public float shadowBlur
shadowSpread
View Source
Declaration
public float shadowSpread