#unitytips Be aware of the difference:
Renderer.material(s) instantiates a new object, which are not garbage collected. You have to destroy it, to avoid memory leaks!
Renderer.sharedMaterial(s) are shared between all objects, changing it will change all instances.#gamedev
— Binary Impact (@BinaryImpactG) December 14, 2021