- Home /
Is there a way to show a UI object through a mask? (bonus: rect Ymax position)
I have a Slider, and the slider has a mask over the Fill area. but i want to attack some Text to the fill area, so the text will move with the slider.
But.. the text needs to be outside of slider panel, and so the mask hides it.. So, is there a way to still show it even though it's hidden by a mask?
Bonus question: At first i tried giving the text a position, and move it through code. butt i just don't know how to find the position of the slider rect bottom! i tried all sorts of things, but the position i gave the text, was always way way off. (like, slider.rect.Ymax).
Your answer
Follow this Question
Related Questions
Select layers to mask in RectMask2D component 0 Answers
Get UI Slider Value 3 Answers
Trying to move slider based off percentage of screen 1 Answer
UI Slider looses control in Update function 1 Answer
Custom UI material with Mask ? 2 Answers