Search Unity

Shuriken - Change emission burst particle count at instantiation?

Discussion in 'Scripting' started by Zergling103, Sep 15, 2012.

  1. Zergling103

    Zergling103

    Joined:
    Aug 16, 2011
    Posts:
    392
    Hi there,

    I remember that with using the legacy particles, it was very easy to modify the number of "burst" particles when the particle emitter was instantiated. It'd use the same value for when it constantly emitted, or for when it used "one shot" instead: All one had to do was multiply "maxEmission" and "minEmission" by some amount.

    However, with Shuriken, this is no longer clear. Does multiplying "emissionRate" by some value do the same thing? Or does it only effect the emission rate parameter seen in the inspector, without affecting the particle count under bursts? (Yet again, another example of where the documentation could be more clear, instead of just leaving an empty page dedicated to describing emissionRate as "The rate of emission". You don't say? :eek:)

    That aside, if modifying "emissionRate" doesn't do the trick, what would? Any help would be appreciated! :)
     
  2. originalbadboy

    originalbadboy

    Joined:
    Jul 3, 2012
    Posts:
    14
  3. SonicPunch

    SonicPunch

    Joined:
    Oct 14, 2012
    Posts:
    5
    What would the actual script look like? Considering some of us doesn't have any scripting skills.