- Home /
How can I see particles on an animation and not always?
Hello, I wonder how can I see particles only on animation, and not always see it. I made a sword, started animating it and I put particles on it, but I always see the particles, and I want to see them only when animation plays, this is very annoying for example: when I move and quickly look back I see the particles fading out. I want to see them only when animation plays. Please I really want to make a good game and upload it
Cheers, Andrei
Answer by korotaevnikita73 · Jan 13 at 06:25 PM
Hey, I think you should check the parametr if your particle is infinite in inspector, you have to make sure its played once and then destroys ( you can do this in settings of the particle ). Then instantiate a prefab with this particle in the sword s position from script. You should write something like - Instantiate(particlePrefab, sword.position) in the same place where your sword animation starts.
When I press Left Click the animation plays and the particles are following the sword, but I want the particles appear only when Left Clicking and not always see them, If I follow your steps, is it going to work?
Cheers
Then i think you should do your particle infinite, but then check through script if left click is now pressed, if true then you can Set active (true) or if left click is not pressed then set active(false)
Your answer
![](https://koobas.hobune.stream/wayback/20220613051633im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can I export particle system animations as image sequences without desktop recording software? 1 Answer
ARK of the COVENANT | How do I trigger Particles to come out once the top has been removed? 0 Answers
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers