How To Spawn Actor when Widget Passes Over Collision Box


Hi everyone! So this may be a stupid question but I’m trying my best out here. So basically imagine HayDay farming, I’ve made the widget where the “seeds” will go, and I’ve made the drag preview widget. I also have collision boxes where I want the seeds to spawn. Now my issue lies with the fact that I don’t know how to tell the collision box to spawn an actor when a widget passes over it. Am I even on the right track here? are the collision boxes the way to go? I’ve tried finding online tutorials for this with no luck and I feel like I’m losing it. Any help is greatly appreciated <3

I highly recommend making the collision boxes as short as possible. At their height right now, you’d end up selecting the wrong one 9 times out of 10.

I’d recommend creating a custom trace channel. Make sure it defaults to ignore.


Then in your collision boxes, ignore every single channel and object that isn’t this channel- block this one.

You can then just use GetHitResultUnderCursorByChannel using that channel:

1 Like

Thank you so much for your help! I’ll give it a try!

1 Like