I have a function that creates a new spatial material each time it's called (it's called very often), with another function that 'removes' the material by setting a mesh's surface material to null.
By setting the surface material to null I'm simply 'removing' it from the mesh. BUT, since the material was first created via
SpatialMaterial.new() , I'm guessing it still sits in memory? How do you get rid of a material completely (similar to freeing a node)?