Particle Question
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Particle Question
From what I know a few of you are using Unity or learning it. I myself am one of those people. I had a question about particle emission, I want it so when a gun is fired that it only emits the particles for a certain amount of time, like 1 second or something, instead of always emitting. Any ideas on how to do this?

Power3DArt
-Current Project: Fault [Pre-Alpha]
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Particle Question
In the particle system, there is an option for one shot. If checked, it will only fire one burst, thats it. (Like a gun shot). To make it go away faster, (not sitting in front of it) but the min & max energy state how long in seconds the particle(s) will last. You will also want to make sure the emitter, animator and renderer attached to whatever you want the particle system to be a part of.
You can also visit Unity 3D site on Particle systems: Unity - Particle Systems
You can also visit Unity 3D site on Particle systems: Unity - Particle Systems
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Particle Question
I spent a few hours looking into it
From what I found out I will have to use a script that sets particles as true as it shoots then turns it to false at the end.
Will keep you guys posted, stil getting used to this scripting thing, trying to make a 3rd person camera/movement system right now.
From what I found out I will have to use a script that sets particles as true as it shoots then turns it to false at the end.
Will keep you guys posted, stil getting used to this scripting thing, trying to make a 3rd person camera/movement system right now.

Power3DArt
-Current Project: Fault [Pre-Alpha]
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Particle Question
I have one at home that I use, if your interested I will share it with you!!Last Known Hero wrote:I spent a few hours looking into it![]()
From what I found out I will have to use a script that sets particles as true as it shoots then turns it to false at the end.
Will keep you guys posted, stil getting used to this scripting thing, trying to make a 3rd person camera/movement system right now.
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Particle Question
Wow that is exactly the camera system that I wanted to get running, if you could share it that would be awesome 

Power3DArt
-Current Project: Fault [Pre-Alpha]
Re: Particle Question
I know they have a WoW-type control scheme on the Unity forums that you could use, if you were interested. Sounds like the same type of thing Spirit has.
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Particle Question
I looked up the WoW thing, and didn't care for it...but I will be more then willing to share the code! 
- Last Known Hero
- Posts: 807
- Joined: Wed Aug 26, 2009 12:28 am
Re: Particle Question
I looked up the WoW thing too, i made a new script inside of unity and pasted it into it and when i went to apply it it told me that I need to compile to fix the errors or something like that..

Power3DArt
-Current Project: Fault [Pre-Alpha]
Re: Particle Question
Eh, you must have mis-assigned the scripts or something. You made new javascripts, right?Last Known Hero wrote:I looked up the WoW thing too, i made a new script inside of unity and pasted it into it and when i went to apply it it told me that I need to compile to fix the errors or something like that..
It took a second for me to get it working right, cause I had to figure out the hierarchy for the objects ingame, but I can attest that it definitely does work. Not the greatest script, but it was a nice starting point for me.
Mind making a post to share yours, spirit? I'm interested in it
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm

