How to clip frames? (it won't work)

I am trying to make a stamina bar but when the bar reaches 1%, it ends up looking weird (ignore the text):


I have tried enabling ClipsDescendants in StaminaBar but it doesn’t seem to do anything. My explorer tab looks like this:
image
Does anyone know what I can try doing? Thanks!

Try replacing StaminaBar with a CanvasGroup. CanvasGroups have different clipping behaviour, in that it respects UICorners and stuff.

3 Likes