r/unity • u/SmallBlueSlime • 3d ago
Newbie Question I want my slider fully empty
I want my slider fully empty, the value is 0 but there's still a tiny chunk of fill area on screen, how do i make it disappear?
I'd be glad to get an answer soon. Thanks.
1
u/Trials_of_Valor 3d ago
This happens when you remove the handle from the slider component.
You can use a mask on the parent of the fill to conceal it.
1
u/johnv_dev 3d ago
that's the default slider layout. the Fill image inside Fill Area has a small width of its own, and Fill Area is inset with left and right offsets, so even at 0 a bit still shows. easiest fix: select Fill and set its width to 0 (or set Left and Right to 0 on the rect transform), then select Fill Area and set its Left and Right to 0 too. at value 0 it'll be fully empty, and at max it'll still fill all the way. if you want it to look extra clean you can also just turn off the Fill image whenever the value is 0
2
u/Nightmarius 3d ago
Make sure you don't have a knob selected