Skip to content

Floating Damage Text Component

Overview

UMIPFloatingDamageTextWidgetComponent is a UWidgetComponent that displays floating damage numbers (or similar combat feedback). It holds a UMIPFloatingDamageTextsContainerWidget and adds entries via AddFloatingDamageText(InFloatingDamageTextInfo) using FMIPPlayerDealtDamageInfo. On owner destroyed it cleans up.

Key traits:

  • Attachment: Typically on character or actor that receives damage (each target has its own widget component).
  • API: AddFloatingDamageText(InFloatingDamageTextInfo) – pushes one entry to the container widget.
  • Lifecycle: BeginPlay sets up container; OnOwnerDestroyed unregisters.

All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.


Key Classes & Files

Class File
UMIPFloatingDamageTextWidgetComponent Public/FloatingDamageText/MIPFloatingDamageTextWidgetComponent.h

UMIPFloatingDamageTextWidgetComponent

  • Base: UWidgetComponent.
  • Integration: Damage/combat system (e.g. gameplay effects or ability callbacks) gets FMIPPlayerDealtDamageInfo and calls AddFloatingDamageText on the hit actor's component.