I am designing a fixed point and click game. There is no pawn. The character is only operated via Player Controller blueprint and navigation with a camera actor. I want to create an event where if I click on an object, a text widget will appear on the screen. Does anybody have an example on how to do the nodes properly? Screenshots are also helpful. Thanks!
From your BP Controller, you can enable Clicked Event.
Then from an Actor BP, do this:
For a more dynamic solution, you will need to do this via the controller, something like that:
MouseLeftClick > Get Hit Result Under Cursor > check actor if has function interface > get this actor data (using interface) > display widget component text with parameter of the data.
*if you want to display the text over the actor clicked.
Thank you so much! I have compiled the nodes exactly how you showed me and it works.
1 Like