- Home /
Standard Particle shader permenenly referenced from memory?
So I've encountered some strange behaviour that is easily reproducible but seems to have a permanent effect on a Unity project. The problem is, if you set ANY material to use the shader "Particles/Standard Surface," then that shader permenently gets added to some hidden ShaderVariantCollection, and is now always taking up memory.
Things I have tried!:
Change the shader on the material
Delete the material
Clearing tracked shaders in the Graphics settings
Messed with the shader stripping settings
But the shader ALWAYS remains in memory. Now you might be thinking, well it's just one shader, no big deal. The problem is that particular shader is 35MB for some reason! That's a huge amount of memory!!
Please somebody let me get my 35MB of memory back.
[1]: /storage/temp/157787-shader.png