how to make a gui scrollbar render below another gui scrollbar

i was trying to make a healthbar so i made a red scrollbar and then a green one at the same location that goes down when the player loses health, the only problem is that the red one is on top

heres the script:

function OnGUI(){
	GUI.color = Color.red;
    GUI.HorizontalScrollbar(Rect (480,40,200,20), 0, 100,0, 100);
	
	GUI.color = Color.red;
    GUI.HorizontalScrollbar(Rect (20,40,200,20), 0, 100,0, 100);
}

Why are you using scrollbars for this? It seems like a bit of a strange decision to me. Also, I don’t see any green scrollbars there- it looks like they’re both red to me.

Why don’t you just use GUI.DrawTexture? Remember, things which are called later always draw on top of things drawn earlier, unless you are using GUI.depth to manually layer them.