Images won't tile or offset
In 5.3.2, I was using tiling and offset to produce a scrolling image. However I need a bug fix in 5.3.5, so 'm forced to upgrade. Now images do not tile or offset. I want to use the Unlit/Texture shader, but I have also tried the standard UI shader. Neither obey tiling or offset inputs whether static or dynamic (from a script). When a script is driving the material offset, I can watch the editor update the material asset, but the image does not change.
The scrolling code is as simple as:
void Update()
{
this.GetComponent<Image>().material.mainTextureOffset += new Vector2(
Time.deltaTime * ScrollRate,
Time.deltaTime * ScrollRate);
}
You may have to set the texture offset manually, i.e.
material.SetTextureOffset ("_$$anonymous$$ainTex", new Vector2 (Time.deltaTime * ScrollRate, Time.deltaTime * ScrollRate));
Unfortunately that doesn't help. And even just setting the tiling/offset in the inspector produces no change in the scene. It does change the asset thumbnail, though.
Answer by ForteBass · Jul 12, 2016 at 03:02 AM
What I am doing is still correct. Unity repro'd the bug and devs are fixing it.
https://fogbugz.unity3d.com/default.asp?812627_0lkr81obh1c1admb