Sets the offset of a named texture in a game object's material. Useful for scrolling texture effects.
The game object to change.
The index of the material on the object.
The named texture. See unity docs: SetTextureOffset
The amount to offset in X axis. 1 = full width of texture.
The amount to offset in Y axis. 1 = full height of texture.
Repeat this action every frame.