- Home /
Using UI Slider Problem
The problem is I want the bar to be filled up 100% or down to 0%
but even if the value is set to Zero nor MAX , it only fills 90% or like 5% remaining, I don't want that for a health bar.
I treid googleing, tried solving it myself but could not find a good solution,
please help
Can you show an image of the slider on the UI where we can see the anchors of the slider elements and also your script that controls the slider value.
It is possible as I use one myself.
Answer by johannv · Oct 19, 2015 at 11:37 PM
Check the RectTransform of the child "Fill", he has padding value by default.
Answer by rlo · Oct 20, 2015 at 11:57 AM
The problem is that you deleted the handle from the slider and by default the handle covers that unfilled part. You can try changing the image of the "Fill" child and changing the image type to "Filled" or you can use UI Image with "Filled" image type which will be much easier.
Answer by 1028795420 · Oct 20, 2015 at 11:58 AM
The first The first children of the slider Handle Slide hidden Area。
The second will be the Fill Area filled areas and the parent object equal the Slider。 The third will be the slider attribute value is equal to zero,To change the size of the Fill is zero。
Your answer
Follow this Question
Related Questions
Determining if Horizontal Layout Group has room for an element. 0 Answers
Beta UI 4.6 - Red Cross on runtime objects 1 Answer
Detect If Pointer Is Over Any UI Element 6 Answers
4.6 UI Image follow mouse position? 4 Answers
UI is not visible on Android lollipop after upgrading from 4.6 to 5. 0 Answers