Api Sandbox UI Shadow
struct

Shadow

public sealed struct Shadow

Shadow style settings

Methods

Shadow Scale(Single f)

Scale all variables by given scalar.

f — How much to scale the shadow parameters by. 1 is no change, 2 is double the sizes, etc.
returns — The scaled shadow.
Shadow LerpTo(Shadow shadow, Single delta)

Perform linear interpolation between 2 shadows.

shadow — The target shadow to morph into.
delta — Progress of the transformation. 0 = original shadow, 1 = fully target shadow.
returns — The interpolated shadow.

Fields

Name Type Description
OffsetX Single Shadow offset on the X axis.
OffsetY Single Shadow offset on the Y axis.
Blur Single Amount of blurring for the shadow.
Spread Single Increases the box size by this much before starting shadow blur. Box shadows only.
Inset Boolean Whether or not this shadow is inset. Box shadows only.
Color Color Color of the shadow.
Assembly: Sandbox.System Namespace: Sandbox.UI Full Name: Sandbox.UI.Shadow