Input event triggers for one blueprint class but not others in ue5?

Steps i performed:

  1. Go to Edit > Project Settings > Engine > Input
  2. Add Action Mappings > “Interact” and bind to keyboard “E”
  3. in the blue print create a new node “Interact” and linked with print string “Hello 1”
  4. create a new BP actor and added same node with string “Hello 2”.

image

when the game plays: i press E and only prints “Hello 1”. The event seems to be associated with only one actor, and I can’t figure out how to make it work for multiple actors. Has anyone else run into this issue, and if so, how did you solve it? I’ve tried using a Switch statement and interfaces, but I’m still having trouble. Any advice would be greatly appreciated!

Try to disable this:

My Products

If it is just a normal BP actor, you have to drag the actor into the level or spawn it, and you also have to enable input on it with an enable input node or in class defaults of the BP actor, set auto recieve input.

i create one BP class. Duplicate it. changes string to “Clicked_2” from “Clicked_1”. Now it prints only “Clicked_1” and not “Clicked_2”. It prints the one that was compiled at the end. So i can make it print “Clicked_2” if i compile it at the end. but never prints both.