|
Apparently ParticleEmitter is a class but MeshParticleEmitter is not. This is a problem when you need to access the mesh : Mesh variable. The ParticleEmitter class does not contain said variable. Thoughts?
(comments are locked)
|
|
The mesh used by the mesh filter is the same mesh that's used by the mesh particle emitter, so you can access it that way. Makes sense, but how can you access that property if the gameObject with the MeshParticleEmitter component doesn't have a mesh filter? To give context, I have a prefab with a mesh particle emitter that will have the mesh property of it determined at runtime. Since the mesh filter that it will target is not a component of the mesh particle emitter I am instantiating, accessing the mesh filter won't reference the mesh property of the mesh particle emitter. Does that make sense?
Feb 04 '10 at 11:16 PM
CJCurrie
If the game object doesn't have a mesh filter, just add one. Component -> Mesh -> Mesh Filter
Feb 04 '10 at 11:51 PM
Eric5h5
(comments are locked)
|
|
It only makes sense accessing the mesh variable when you have a mesh on it. Before that why should you do such a thing?
(comments are locked)
|
