The goal of any gameplay programmer isn’t just to implement new functionality, but also to polish it to create an enjoyable player experience. This work is done in several phases. In this tutorial, we’ll create a push-button actor that interacts with several activatable actors—an implementation in which we’ll see how to manage collisions in the engine, how to work with overlapping events, and how to add input using the engine’s new Enhanced Input system. Once the basic functionality is developed, we’ll integrate an effect using Timelines, introduce widgets in a simple way to display text on the HUD only when the player can press it, and explore how to calculate the dot product so interaction only happens when looking at the button.
https://dev.epicgames.com/community/learning/tutorials/wrOGX/unreal-engine-prototyping-and-polishing-an-interactable-actor