Skip to main content

Registering Actors with the Tooltip System Using Dedicated Components

Add tooltip functionality to Actors without code using the LayeredTooltipDefaultComponent.
Note: This component serves as a sample/reference implementation and may not satisfy all requirements for production game projects. For greater control, extend the implementation using C++ or Blueprints directly.

  1. Create an Actor.

    Registering Actors with -20250803111344005.webp

  2. Add any PrimitiveComponent. A Cube is used in this example.

  3. Ensure collision is enabled for the PrimitiveComponent. Collision Query must be enabled for mouse-over detection.

Registering Actors with -20250803111344024.webp

  1. Add LayeredTooltipDefaultComponent to the Actor.

Registering Actors with -20250803111344086.webp

This component automatically finds the Actor's first collision-enabled PrimitiveComponent and handles mouse-over events.

  1. Select the component and configure tooltip information in the Details tab.

Registering Actors with -20250803111344163.webp

  1. To use this functionality, the PlayerController must have bEnableMouseOverEvents enabled.

    Registering Actors with -20250803111344181.webp

  2. The Actor now displays tooltips. Use the bOverrideTooltipPositionInViewport flag to control tooltip positioning.

    Registering Any Object with the Tooltip System.webp