- Home /
Water emission using c#
I'm using c# to emit water but I'm not using network view (making a game for windows). I rewrote the code to emit the water.
private ParticleEmitter particleEmitter;
// Update is called once per frame void Update () {
if (Input.GetButtonDown("Shoot Water"))
{
particleEmitter.Emit();
}
}
but it won't emit the water particle. Is there anyway to emit the water particle using this and can it be used for the shiruken particle system?
Answer by getyour411 · Feb 13, 2014 at 10:38 PM
I think you are looking for this (enableEmission)
https://docs.unity3d.com/Documentation/ScriptReference/ParticleSystem.html
PS and you would reference it as ParticleSystem w/ Shuriken, not ParticleEmitter. Example:
public ParticleSystem ps;
ps.enableEmission = true;
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Particle System Instantiate's With Original Rotation - C# 1 Answer
Can new Shuriken particles be emitted at runtime? 0 Answers
Particle Effects On A Prefab 1 Answer