- Home /
 
 
               Question by 
               fonql · Sep 06, 2020 at 11:57 AM · 
                scripting problemmaterials  
              
 
              Scripted SetTextureOffset not working after switching to Universal Render Pipeline
My script isn't working anymore since I switched to Universal Render Pipeline from the built in renderer.
This is my script:
 private IEnumerator SignalTurn()
     {
         print("SignalTurn");
         signalMat.SetTextureOffset("_MainTex", new Vector2(0.32f, 0f));
         yield return new WaitForSeconds(1);
         signalMat.SetTextureOffset("_MainTex", new Vector2(0, 0));
         
         yield return null;
 
     }
 
               I'm thinking it might have to do with instances of a material but I turned that off, or maybe the _MainTex keyword isn't used anymore. But frankly, I'm a bit at a loss, any pointers helpful Thank you very much!
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by fonql · Sep 06, 2020 at 02:27 PM
Fixed, the answer was at this page:
https://answers.unity.com/questions/1670401/settextureoffset-not-working-with-lwrp.html
thanks!
Your answer