The mesh particles are frequently used in 3D games. But the Unity Engine only have a billboard particle renderer. Luckily, it’s not difficult to create a mesh-based particle renderer, which works together with Unity’s built-in ParticleEmitter component.
Here is the code: MeshParticleRenderer on Github
To use it, use “Components -> Particles -> Mesh Particle Renderer” to add it to an existing particle system. You could remove / disable the original ParticleRenderer component if you like.
All the meshes are pre-allocated. So if you make the particle object a prefab and use an object-pool to manage them, most of the memory allocation in run-time could be avoided. That’s important for games, especially on mobile platforms.
Great piece of code ! Thank You ! Please, contact http://wiki.unity3d.com to include your code there (If you’re OK with this, of course) . I almost gave $50 for the same functionality – http://forum.unity3d.com/threads/92251-Mesh-Particle-Renderer-now-available
I have added to my particle system and I put it a mesh but it doesn’t anything
Hi,
i’m trying to use this, but i am getting an error msg:
MissingComponentException: There is no ‘ParticleEmitter’ attached to the “Particle System” game object, but a script is trying to access it.
You probably need to add a ParticleEmitter to the game object “Particle System”. Or your script needs to check if the component is attached before using it.
any idea what i should modify?
thanks!