I tried simply print string with
pressed exec pin. Didn’t work!
What blueprint did you try it in? Player Controller / Pawn / LB or just a regular actor? It works as is, perhaps you forgot to enable input for the actor. A node like this should not be used in a regular actor anyway.
Hello its working in level blueprint. But Not in pawn BP. I enabled touch inputs events in player controller also assigned that controller in GameMode. Touch Begin Events works though anywhere.
… well, almost 100% certain you’re running into the very system I just described above. If you use the same input in more than one place - only 1 will work, the actor that gets to consume it first. That’s precisely why you should keep input in 1 place. Look at the order of input processing from the link:
The InputTouch does not print “Hello” But event above that works in Pawn BP… And Also I don’t any more Inputs than these in whole project. I am just experimenting to see the outputs and clear basics.
does collision matter for touch events.? I haven’t build any collision for my imported fbx file as its more of a puzzle type game.
Also, Now I changed the parent class to Actor. The touchInput Started working but begin touched stopped working. Then I changed it back to Pawn Parent class. Now Both doesn’t work.
I am experimenting a lot. But not getting any conclusion from it.
Edit: Just realized what stopped my Touched Begin event - setting Collision to No Collision
re: fine - I find it hard to imagine a scenario where this would be useful / helpful / needed. If you do this, you actually no longer know what you’re touching because any actor now registers it. You’re not actually touching the actor here, you’re touching the screen and every actor tries to report that touch… Super confusing for everybody!
And Also I don’t any more Inputs than
these in whole project.
So… how many hexes are in your game? 1? See what I mean? You surely have more and every one of them will try to process and consume it. If you do it like this, you actually don’t know which one did.
Why are you even trying to have input in the actor. As explained above, this is the last thing you generally want. That’s unless you after some super-duper unique behaviours.
If you want to touch a Hex actor (and that one only!):
The above if for touching the screen, not the actors. You can have Input Touch in the Pawn / Controller and On Input Touch Begin in Hex actors. And both will work - you will get separate notification regarding touching the screen and specific actors.
It must be blocked. Which channel to use can be adjusted in the Player Controller and new channels can be added (perhaps you want to touch Invisible Ghosts enemies)
Thanks This helps a lot. I was trying to that Input Touch event in there because, you said to keep all inputs in one place. But I didn’t thought about number of pawns I have in the game. Thanks for explaining it in so easy way.