Change Decal texture in script?

How can I go about changing the texture for the Decal in script? I tried SetTexture(“_Decal”, tex) but it says “_Decal” doesn’t exist.

Look at the shader to see what names are actually used.

–Eric

Ah, thanks. I looked at the shader code and it’s named “_DecalTex”

It works now!
Thanks