Only UITextures, UISprites, and UILabels are concidered UIWidgets (they are the only ones that derive from the widget). Buttons are just a combination of sprites and labels with controls on them (scripts that make them behave a certain way). If you need to change the depth via code you will need to find in children all components of type UIWidget and then do a .depth on each of them (same goes for the color).