Best way to draw drag feedback?

Suppose you’re making some sort of touch-screen fruit-smashing game (a wholly original idea, I know!). The user swipes their finger (or multiple fingers) across the screen to interact with the game. I want to have a glowing trail appear behind each finger as it swipes, which quickly fades out.

What’s the best way to add this sort of trail to a touch gesture? Trail Renderer? Line Renderer? Particle effect? Or something else?

Thanks,

  • Joe

I would do a trail renderer with a particle effect attached. That’s what it looks like is used in the other fruit smashing game. =p

Thanks Garth, I’ll look into that. I’ve never used trail renderers before, so this sounds like a great opportunity to learn something new!

If I remember right, you need to instantiate TrailRenderers in the place you want the trail to start from. Its been a while since I used TrailRenderers, but I remember Instantiating it, then moving it, and it would draw a line from where I instantiated it to it’s new location even if I didn’t want that.