- Home /
Question by
Bialy_ · Apr 25 at 12:40 PM ·
scripting problemmaterialshaders
Changing _UVBase via script not working
Hi, Im trying to change HDRP lit shader property "_UVBase" with this line of code: this.GetComponentInChildren().material.SetFloat("_UVBase", int.Parse(kvp.Value)); In inspector everything looks fine however on object it seems to not be updated until i change something in inspector. Changing uv mapping in inspector works fine. I'm using unity 2021.2.10f1
ezgifcom-gif-maker-1.gif
(498.2 kB)
Comment