I’m busy implementing a card battle system, where the player will be able to select, drag, release cards, etc… The cards are UI Widget BPs placed on a 3D actor and placed in the world - to appear as a card actor.
While busy with interaction, I realized I can either handle interaction on the Widget BP itself or using the Player actor with the Enhanced Input System
Widget BP:
Add a button as the front-most layer which contains OnClicked, OnHovered, etc… events
Enhanced Input System:
Handle hover with line tracing and create Input Action assets for the onClick, onDrag, etc… events
I’m not sure which way is best - but I’m leaning towards the Widget BP as I’m thinking it may be more efficient and will be useful if adding more buttons to interact with on the card.
Let me know your thoughts!