Select Actor Via/On Click
I already have an Actor-Selector set up, altough it is wired to the keys 1,2 and 3. Since the target platform is a tablet , these numbers need to be changed to Touch (Or Click). The Idea is that when clicking one of the possible three actors (RotationCharacter1 through 3) the game posses this new actor. The image shows what i have right now.
I have tried to use mouse over + click, although i didn't get it to work at all, and neither has hit under channel (The reason being that i didn't see a way to convert hit to actor reference).
Possibly the reason your previous try at mouse over + click didn't work is because your collision was wrong, "Visibility".
Try changing that.
Also, to convert hit actor reference, just cast to your pawn BP
(also, would be best to not get cursor hit every tick, just put that part on left click)
PlayerController has a "Get Hit Result Under Cursor for Objects", you can pass it an array of acceptable object types (like Pawn) and then use the "Hit Result" to get the clicked on pawn.
Hope it helps :)
answered Apr 08 '15 at 08:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here