Animated texture offset problem

Hello,

I have a material with very simple custom shader and I animate its texture offset from the script in Update() method. It works fine and smoothly on latest iOS and Android devices, but once I run the game on older device like iPad 2 and some Androids, texture offset jerks. It looks like that texture offset parameter is not updated each frame, or maybe some precision issues.

Currently I do not know how to figure out the reason and solve the problem, so I want your help guys!

I don’t know what is causing your issue. Check logcat etc for any warnings, errors. Does other shaders have the same problem? If not, compare source code to figure out what could be different. Perhaps there are different types in use (float2, half2, fixed2 etc).

You can get the built in shaders source code from the download archive, just select it in the drop down for the version you are using.