Rotating texture around sphere

I have a checkerboard texture that I want to rotate around a sphere’s X and Z axes depending on user input.

Anybody know how?

Just alter the Offset parameters on the Material the texture is in.

You can animate a texture using the mainTextureOffset call. See:

http://unity3d.com/support/documentation/ScriptReference/Material.SetTextureOffset.html

Now this wont translate directly to your question. This is because this 2D shift of the texture is relative the surface of an object not the world.

Hence, if you have a surface that is flat against the X,Z plane, ie on the floor, then any X,Y Offset of the texture will in real terms be animated on the X,Z.