- Home /
Emit Random Particles?
I have a particle system that doesn't emit anything, i only use it's emit() function at specific times to get bursts of particles. Is there any way to have it choose randomly between two different particles when doing a burst of particles?
Not sure of the answer, but you probably need to define what yuou mean by "two different particles." Do you have two different ParticleSystems or the same ParticleSystem with different settings, the same settings with a different material, or...
one system, one setting. but two differant materials id like to to randomly choose from when emitting a particle.
-sry for the delay, iv been working on other things in my project and i forgot i posted this question.
Answer by robertbu · May 01, 2014 at 03:42 PM
According to @Eric5h5 in this post, you cannot have multiple materials on a particles. Given the age of the post, he was probably talking about the Legacy (ParticleEmitter) system, but it is likely true for the ParticleSystem as well. And it makes sense. To get the kinds of performance for the number of particles created, these systems likely drawn all the particles as quads in a single mesh, and I've seen nothing in the reference that gives access to this mesh.
On the other hand by jumping through some large hoops @JPLKit was able to change the image on individual particles. It required a custom shader.
http://answers.unity3d.com/questions/17246/how-to-make-a-particle-system-with-different-parti.html
Answer by wibble82 · May 01, 2014 at 03:54 PM
The simplest way to acheive this will be to have 2 particle systems, each with a different particle material. Then just randomly choose which one to emit from.
Your answer
Follow this Question
Related Questions
'Swap' a particle from one system to another, keeping it's position 0 Answers
Manually and efficiently placing thousands of particles 0 Answers
particle system stops normal emissions after .emit() is called 0 Answers
How to force a particle system emit from every vertex a mesh have? 3 Answers
Particles emit in the same direction twice if they hit a collider 0 Answers