Tiling does not work in LWRP?

I been trying to see why this script does not work.

var rend = gameObject.GetComponent<MeshRenderer>();
rend.material.mainTextureScale = new Vector2(1, 10);

I was testing that code in a LWRP project, I made sure i wasn’t in clamp. I decided to test it in a non-LWRP project and it worked. The issue was the code does not work in LWRP projects i’m not sure if i’m doing something wrong or if i have to do it in a different way. Does anyone know how i can fix this issue?

I have same problem

fixed,
try
Renderer.material.SetTextureOffset(“_BaseMap”, new Vector2(1, 10));