EllipsoidParticleEmitter

Hi!

I can’t seem to GetComponent(EllipsoidParticleEmitter);
(does not denote a valid type)
but ParticleAnimator for example does work.

Am I targetting the right classname?

Thanks.

Only the base class (ParticleEmitter) is exposed to scripting. In general, if class name is not highlighted in Unitron, then it does not exist.

Ah okidoki. Thanks!

Is there a reason why EllipsoidParticleEmitter is not visible to the scripting? I have need to dynamically modify the ellipsoid dimensions at run-time, and I’m at a loss as to how to accomplish this except for the brute force way of creating a couple dozen pre-made objects with particle emitters that I dynamically switch between (which is really quite a stupid way to do it and I don’t think it would be seamless, either).

Ideas?


David Robinson
Coole Immersive, Inc.

Probably the same as anything else that’s not visible to scripting: because nobody has got around to implementing a scripting interface for it yet. :wink:

Use a mesh particle emitter instead, and change the scale as needed.

–Eric

Ah, yes, good suggestion. Now why didn’t I think of that…? Thanks!


David Robinson
Coole Immersive, Inc.

I would add that it is quite easy to make your own type of emitter by controlling the particles and emitting them your self. I have done all kinds of particle emission types with it.

Check out:
http://unity3d.com/support/documentation/ScriptReference/ParticleEmitter.Emit.html
and
http://unity3d.com/support/documentation/ScriptReference/ParticleEmitter-particles.html

Bill