|
So, I have a cube that acts as a button. I'm trying to figure out how to create a particle system at a particular location (or activate one, that would be easier) with a click of that cube. Here's my code so far, I don't know what to do to create/activate the particle system. if(Input.GetMouseButtonDown(0)) //Make sure the object is clicked on So, What do I do next? Additional info: I've checked a lot of posts but i can't find anything.
(comments are locked)
|
|
Build a ParticleSystem and use functions from the Script Reference to make it do. Instantiate it when the button is pressed, or child it to the button and just turn it on, depending on your needs. Now how would i do that? I'm new to javascript.
Aug 19 '12 at 08:25 PM
Sausagesauce
I think i have it actually! Thanks!
Aug 19 '12 at 08:28 PM
Sausagesauce
(comments are locked)
|
