- Home /
Shaders not working on particles in Unity 5!
I met this crazy problem and have no idea what's going on totally... I was trying to build a coin spraying particle system, and made the particle texture like this (a PNG file):
I set the material shader as Particle/Alpha Blended, tinted the coins with 2 colors randomly, and everything works fine in the particle simulation.
BUT the material is rendered like this as soon as entering game-play mode:
I've tried all means I could think about, including: - Set the texture background to black and save as .jpg - Set the Alpha in grayscale in the texture import window - Set the shader to Alpha Blended Premultiply, Transparent, Transparent Cutout, etc... And finally I found no shader setting is applied to the particles in game-play rendering mode, no matter what shader it is...
I'm using Unity 5 and I've googled for over 2 hours without any helpful solution.. Can anyone help me please? It's driving me mad!
actually l have the same problem with my project how do you handle it?
@Doreamon, yes I did. It was rather stupid. Turns out I accidentally reassigned all shaders of the game object, including its children's, just for a mouse-hover-highlight function. Now I stow all the influenced shaders before highlighting the game object, and restore them after.
Though it might seems stupid, I hope this can give you a bit hint. $$anonymous$$aybe you want to check your code about dynamic shader management.