- Home /
Alternative Slider Method
I'm trying to create a combo bar out of a sword where the bar the blade part. Unfortunately, the slider filling object "leaks" out of the blade part due to the shape of it. Is there a different way to do the filling part of a slider? Like for instance setting an area inside of borders that can be filled. Or perhaps negate/ignore the filling outside of the intended area?
Answer by Mikilo · Apr 28, 2018 at 03:26 AM
Hi,
You can use the Mask component with your sword texture as a parent of your filling blade. Every children under this parent will be clipped if it is not in the blade shape.
Your answer
![](https://koobas.hobune.stream/wayback/20220612161640im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Gradient issue with slider 1 Answer
Lagging/unmoving slider 0 Answers
How to Make a Vertical-Scroll Number Input Field, i.e. < > Value Amount 0 Answers
Slider with max value in the middle 0 Answers