particle emitter and transparent materials?

Hello, I have a material which has the rendering mode set to transparent, this is done so I can change the transparency when the player walks behind the object. I have also created a particle emitter and all is working fine, apart from one issue. The particle effects are showing in front of the object with the transparent object, basically I am seeing the particles through the object. Does anyone possibly know of a way I could stop this from happening?

Edit : Think I may have fixed it by using 3999 in the rendering queue. Not looking perfectly, so I am now wondering if it is possble to change the render mode in code when executing. Didnt want to create a bunch of new threads so thought it best just to add on here

It’s absolutely possible to change the render mode with script and there’s even a section on it. It’s worth pointing out that from what I’ve experimented you can access most components directly through the script and Unity is actually pretty good in that regard. If you use GetComponent and grab whatever is in the inspector and then type . after visual studio should come up with a whole list of what you can access through that specific component you want to mess with.

1 Like