Get a single sized texture

I have a structure made a many cubes. The problem now is that when I apply a texture to them they do not line up because all of the cubes are different scales. Is there a quick way to make the texture uniform across all of the blocks? like say I apply the texture and if I scale the block up the texture would still stay the same size, you would just add more across the face of the block. I’m sorry if this is a stupid question but I’m new to to this.

You can adjust the tilings and offsets via script.

Here’s a small example:

public class Example : MonoBehaviour {

    void Update()
    {
        if(Input.GetKeyDown(KeyCode.Space))
        {
            GetComponent<Renderer>().material.mainTextureScale = new Vector2(2,2);
        }
    }
}