Hello,
I usually find all my answers by reading the forum, but this time info seems scarce:
I tried to emit shuriken particles using this function, as specified in the documentation:
function Emit (position : Vector3, velocity : Vector3, size : float, lifetime : float, color : Color32) : void
But Unity won’t accept any other method than the default one: function Emit (count : int) : void
Has anyone used it with success ? Maybe I’m missing something ?
For now my only workaround is to use legacy particles and particleEmitter.Emit.
But that’s not modern.
That’s not a real answer because it doesn’t use Emit, but if it can help you, I use this to instantiate particles (I assume that the particle is attached to an object: as you’d may see it uses transform.position)
//the particle
var particle : Transform;
//the particle's birth position (for example an object)
var particlePlacement : Vector3 = Vector3(transform.position.x, transform.position.y, transform.position.z);
//instantiate the particle
Instantiate(particle, particlePlacement, transform.rotation);
Hello again,
Just to let you know that I upgraded to unity 4.3 and no longer have this problem, the function works as expected.
Looks like it was an issue with the 3.5.5 release and has been addressed since.
Thanks for the comments, asduffo.