CTextPopWidget
Overview
UCTextPopWidget displays an animated floating text popup at an actor’s world position. The text pops in with a scale effect, drifts upward and fades out. Animation parameters (delay, text size, Y movement) are configurable. The widget tracks the source actor’s position each tick and auto-removes when the animation finishes or the actor is destroyed.
Functions
| Name | Description |
|---|---|
| consume | Initializes the widget: sets source actor, animation parameters and rich text content |
| onAnimationFinishedEvent | Called when the animation completes. Removes the widget from viewport |
// UCTextPopWidget receives data via consume:
// - object: source actor (where the text appears in world space)
// - aText: rich text content
// - floatArray[0]: animDelayInSec (default 1.0)
// - floatArray[1]: animTextPercentSize (default 200, peak scale as percentage)
// - floatArray[2]: animYTextPercentMove (default 250, upward drift as percentage of text height)
// If a UWidgetAnimation (CReservedKeyword_pop_WidgetAnimation) is bound, it plays directly.
// Otherwise, three doProgressively calls handle:
// 1. Y translation: drifts upward over animDelayInSec
// 2. Scale: 0 -> animTextPercentSize% -> 100% -> 0
// 3. Opacity: 0 -> 1 -> 0 (with fade-in at 20% of duration)
// On tick, the widget projects sourceActor world location to screen
// and repositions the text via UCanvasPanelSlot.