# Custom Material Parameters

The widget automatically attempts to create Dynamic Material Instances (MIDs) for the brushes assigned to it.

If your materials contain specific parameters, the widget will update them every frame during the OnPaint cycle, allowing you to create advanced shaders (e.g. moving patterns, borders, tiling, etc.) that react to the bar's state.

# Exposed Parameters

Parameter Name Type Description
WidgetLocalRect Vector4 The local geometry of the widget.
X, Y: Top-Left position
Z, W: Width and Height
WidgetMargins Vector4 The padding values set on the widget.
X: Left
Y: Top
Z: Right
W: Bottom
WidgetProgress Vector4 Current fill status.
X, Y: Fill Fraction (0.0 to 1.0) on X and Y axes.
Z, W: Anchor point (0.0=Start, 0.5=Center, 1.0=End).
WidgetPositive Scalar Context-sensitive boolean flag.
1.0: The specific bar (Preview/Fade) represents a "positive" delta (Healing/Gain).
0.0: Represents a "negative" delta (Damage/Loss).