Can't assign MeshParticleEmitter.mesh with script

I was wondering since MeshParticleEmitter is not a class in the UnityEngine namespace, how can the mesh be assigned with script?

The mesh property is not exposed through the abstract ParticleEmitter.

http://unity3d.com/support/documentation/ScriptReference/ParticleEmitter.html

I don’t see a way that this is possible.

Without this part of the API completed, you are missing out of some cool effects.

With a dynamic MeshParticleEmitter.mesh, you could do some really cool effects.

Like a large shadow king silhouette in the snow. And as the character animates you would see the particle outlines change. It could be cool. I’m sure there are other uses.

137832--5051--$mesh_outline_178.jpg

Use the mesh filter; the particle emitter will use the same mesh.

–Eric

What are you talking about?

MeshFilter isn’t a propery on:

ParticleAnimator:
http://unity3d.com/support/documentation/ScriptReference/ParticleAnimator.html

ParticleRenderer:
http://unity3d.com/support/documentation/ScriptReference/ParticleRenderer.html

ParticleEmitter:
http://unity3d.com/support/documentation/ScriptReference/ParticleEmitter.html

Am I just being cross-eyed and not seeing it?

I haven’t used MeshParticleEmitters myself, but from the docs it looks like you need a MeshFilter attached to the same gameobject as your particle emitter. What I think Eric means is that you assign your mesh via the Meshfilter component’s mesh property and the MeshParticleEmitter just uses whatever mesh is assigned to the MeshFilter automatically.

What dawvee said.

–Eric