How To Display Interaction Text In UE5 | Customize & Change Text Based On The State
👉Support me here: https://www.patreon.com/halbotstudios
🎮Get my assets here: https://www.fab.com/sellers/HALbot%20Studios
💬Join the Discord and showoff your work here: https://discord.gg/Syccf4gTwE
UE5 Version Used: 5.4.4
Pre-requisites:
Interaction System: https://www.youtube.com/watch?v=7OmgBa-cKro&t=1324s
Previous HUD Setup: https://www.youtube.com/watch?v=EmPOOdXpjdk&t=1s
Interactable Lights: https://www.youtube.com/watch?v=xp2aaT8dcZE&t=2178s
----------------------------------------------------------------------------------------------------------------
In this Unreal Engine 5 tutorial, learn how to display interaction text only when the player is looking at an actor, and hide it when they’re not. We’ll build a clean, reusable setup using Blueprints, including state-based text (e.g., a lamp shows “Turn Off” when on, and “Turn On” when off).
What you’ll learn
Line trace / look-at detection to find interactable actors
Simple Interface for getting an actor’s current prompt text
A HUD/Widget that shows/hides context text dynamically
State-driven prompts (lamp on/off, doors locked/unlocked, etc.)
Clean communication patterns (no spaghetti references)
Perfect for first-person interactions, horror/survival projects, and any game needing clear on-screen prompts.
My PC Specs:
CPU: Intel i9 9900k
Graphics: Nvidia RTX 3080
Motherboard: GIGABYTE Z390 AORUS PRO
RAM: G.Skill Aegis Series 64GB
00:00 - Intro
02:02 - Going over base item
07:45 - Creating our Widget
13:13 - Timer for checking what we are looking at
15:58 - Interface for passing text
19:08 - Adding text to Base Item
25:40 - How to change text based on state
31:00 - Outro
#UnrealEngine5 #UE5Blueprints #GameUI
Unreal Engine 5, UE5, UE5 tutorial, interaction text UE5, context prompt UE5, look at actor UE5, line trace UE5, interact prompt UE5, show hide widget UE5, HUD widget UE5, blueprint interfaces UE5, interact system UE5, E to interact UE5, state based text UE5, lamp on off prompt UE5, door locked prompt UE5, first person interaction UE5, game UI Unreal Engine, blueprint tutorial Unreal, interaction widget UE5, crosshair prompt UE5, gameplay UI UE5, horror game UI UE5, clean blueprint communication