Gradient does not move in sync in my custom meshes?

Unfortunately, it only works for textures, not material.