ue4 WidgetInteraction
时间: 2023-12-04 15:13:03 浏览: 90
WidgetInteraction is a feature in Unreal Engine 4 that allows for interaction with UI widgets in the game world using a player's input device. It allows the player to interact with the UI elements by clicking, hovering, and dragging them.
To use WidgetInteraction, you need to add a WidgetInteraction component to a player-controlled actor, such as the player's pawn or controller. Once added, you can use the WidgetInteraction component to interact with widgets in the game world.
For example, you can use the WidgetInteraction component to select buttons, scroll through menus, and manipulate sliders. You can also use it to display tooltips or highlight UI elements to provide feedback to the player.
Overall, WidgetInteraction is a powerful tool for creating interactive UI elements in your Unreal Engine 4 game. It allows you to create immersive, intuitive interfaces that enhance the player experience.
阅读全文