Edit Offset Values in Unity URP Lit Shader via Script

1.3k Views Asked by At

I want to edit the Offset Parameter of Surface Input in Simple Lit Shader of URP in Unity, but I am not able to do so.

I tried using Method SetTextureOffset still cannot update the offset value. Please Help

Here is the Offset I want to change via Script -

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

Got it,

Instead of "_MainTexture" use "_BaseMap" in SetTextureOffset and it works