Skip to content

Step 4: UI Integration

BavGames edited this page Dec 20, 2025 · 3 revisions

UI Integration

If your game already has a UI (Widget), open it. If not, create a new one.

Open your UI Blueprint class and right-click inside the Event Graph, then search for Register Indicator HUD.

image

Connect the Register Indicator HUD function to your widget’s Event Construct event.

image

Your UI is now registered with the Damage Indicator system. Next, add an Overlay to your widget.

image

Drag this Overlay into your Canvas Panel and give it a name. The name itself is not important, but we recommend Overlay_DamageIndicators.

image

Select the Overlay and go to the Anchors section in the Details panel.

image

Finally, adjust the size and position values as needed.

image

Now return to the Event Graph panel and open the widget’s Class Settings.

image

In the Interfaces section, add a new interface. Click Add, type DamageIndicatorInterface, and select it from the list.

image

This will add a new Event to your widget. You can find it under the INTERFACES section.

image

Double-click the Add Damage Indicator to Overlay event and connect the Overlay_DamageIndicators (which you previously added to the Canvas Panel) to this event.

image

At this point, the Damage Indicator component can successfully communicate with the selected UI widget.

The example UI used in this documentation is included in the plugin under:

/Plugins/DamageIndicatorPro/Content/Blueprints
image

Clone this wiki locally