UIBlock2D.Shadow
Shadow
A drop shadow, inner shadow, or glow effect.
Remarks
Shadow.Width.Percent and
Shadow.Blur.Percent are
relative to half the minimum dimension (X or Y) of CalculatedSize.
Mathematically speaking:
float calculatedShadowWidth = Shadow.Width.Percent * 0.5f * Mathf.Min(CalculatedSize.X.Value, CalculatedSize.Y.Value)
float calculatedShadowBlur = Shadow.Blur.Percent * 0.5f * Mathf.Min(CalculatedSize.X.Value, CalculatedSize.Y.Value)
Shadow.Offset.Percent is relative to
CalculatedSize. Mathematically speaking:
Vector2 calculatedShadowOffset = Shadow.Offset.Percent * CalculatedSize.XY.Value
Declaration
public ref Shadow Shadow { get; }