Could someone please show me the java script to do this as I’ve been trying for 3 days now to find something that works.
This is what I have been working with so far I want it to work with one button to turn it on & off really but this is just for testing.
var particle : ParticleSystem;
function OnGUI () {
//background box
GUI.Box (Rect (0,160,100,150), "Weather");
if (GUI.Button (Rect(10,190,80,20), "Snow On"))
{
particleEmission.enabled = true;
}
else
if (GUI.Button (Rect(10,220,80,20), "Snow Off")){
particleEmission.enabled = false;
}
}
So the particle system is called Snow & is a Shuriken particle system (that I know of) which is Parented to an empty GameObject called Particles.
I really don’t understand code that well so please explain it simply or just post the code. Thanks anyway guys/gals