- Home /
Particle System's shader changing when gameobject is instantiated
I have a particle system on all of my cannons in my game. The particle system uses a specific shader but whenever the cannon is instantiated from the script the shader changes to a default one. If I drag the prefab into the game world, even during run time, it'll have the correct shader. But when a script calls Resources.Load to bring the cannon in, the shader used for the material in the particle system resets.
When the object is dragged in: http://imgur.com/R1wGTJI
When it's instantiated: http://imgur.com/1dEMn0i
Have you compared the rest of the settings of your particle system that it is instantiated from the intended prefab? Otherwise you may reproduce the bug in a much simpler scene with $$anonymous$$imal assets involved and then file a bug ticket to Unity.
Your answer
Follow this Question
Related Questions
Material doesn't have a color property '_Color' 4 Answers
After upgrading 2017.1, the shader for ParticleSystem does not work correctly. 1 Answer
Particle System: Material doesn't cover the entire sphere mesh 1 Answer
Why Instantianting material does not copy all properties 1 Answer
Swap every material/shader with a another material/shader 1 Answer