Hi;
I am trying to do tile texture like 1 X 1 X 1 scale . But texture was streching. Look the example.

One side is fine because quad on there is 1 X 1 but other side is distorted.
Anyone knows solution ?
Regards and thanks,
Hi;
I am trying to do tile texture like 1 X 1 X 1 scale . But texture was streching. Look the example.

One side is fine because quad on there is 1 X 1 but other side is distorted.
Anyone knows solution ?
Regards and thanks,
You are going to want to scale the UVs as well and make sure that the texture is set to repeat in the import settings.
If you are scaling it in the editor and you are completely fine with only seeing the results when you hit play you could try something like
void Start()
{
Mesh myMesh = GetComponent<MeshFilter>().mesh;
Vector2[] uvs = myMesh.uv;
for(int i = 0; i < uvs.Length; i++)
{
uvs[i].Scale(transform.localScale.x, transform.localScale.y);
}
myMesh.uv = uvs;
}
That should work in theory.