- Home /
Particles on a Line Renderer
Is there an easy/built-in way to integrate particles and line renderers?
Let's say I have created a line renderer prefab for a laser/phaser effect. In the game I set its start and end coordinates from code, so far everything is great.
Now let's say we want to add a particle system to the laser/phaser effect, where the particles are emitted randomly across the path of the beam. Is there an easy way to tell the particle emitter that you want it to spawn the particles based on that?
I was able to achieve this previously manually with code by using a small plane mesh of two triangles and spawning it multiple times, once for each line segment, with the position being the middle of the segment and so on. It works, but it's not very nice code.
So I was wondering if I missed a simple way of integrating a line renderer and a particle system? Just wanted to check before I submit it as a feature request.
Your answer
Follow this Question
Related Questions
How to stop linerender when it hits an object 2 Answers
Points attached to a prefab 0 Answers
Electric/Energy Particle System 0 Answers
Emit particles throughout a line/ray? 2 Answers
Laser Beam in Unity 0 Answers