How do I temporarily shut off a Particle effect

I have a snow particle effect attached to my first person controller camera, but when I walk into a building the snow is still falling through the roof. IS there a scrip or anything that I could use to temporarily stop the effect when I’m inside? As a note I am by no means a code writer.

6 Answers

6

Uncheck the “particle renderer” box in the inspector.

u shouldn’t attach the snow to ur camera make the snow separate object and put it in the place u want the snow to fall on

Why dont you just make the area the snow particle effect covers larger and take it off the character controller. And do u want the snow to stop falling when it you go into a building or what? i dont quite understand

Easiest way to do this without programming would be to add colliders that encompass the building so that the particles bounce off of it and thus don't penetrate to the inside.

In fact, I'd recommend not just "shutting off" the emitter when you're indoors even if you could, because then when you look outside it won't be snowing anymore. Unless what you're saying is that you have a little cloud of snow right above your head, in which case you're going to need to learn programming, because you can't just trip triggers and cause events without programming them.

Keep in mind that Unity is not a "click-together" game engine, and you cannot make a game without some sort of programming knowledge, so there's no better time than now to start learning. Asking people for scripts to do the work for you is not the proper usage of this site.

Also, please please please stop posting responses as answers.

Would that Shut off the particle effect even when the the player exits the building?

I wouldn’t have attached it to the camera but the area I need to cover with snow is quite large.