Help using CombineChildren :/

Well I have many objects that I create dinamically which I then parent to an empty GameObject. After that I make the CombineChildren combine the children. The problemm I have is that each object have the same texture but with different offset and scale in the texture.
I know that CombineChildren helps with a bunch of objects with the same material but how can I make with these objects with different offset and scales so that Unity considers them as they have the same material with different offset and scale so my draw calls decrease?

That’s not a problem with the script. The script isn’t that sensitive. The same material cannot be different for different objects. Using different materials or just proper uv mapping will solve the problem.