Exactly the same way. Access the material on the atlas, then change it. However UIPanels can create their own copy of the material for things like scroll views and will change the shader in this material. To change it there you need to access the actual draw calls. Look at UIWidget.onRender -- it will be called with the material used to draw it.