- Home /
Image as a child inside the slider UI
Hey guys, I just added a volume slider for my project. I also inserted a 'volume' icon as an image UI, and put that as a child to the slider UI in order to fix the position right next to the slider. After I built the project into my phone I saw that whenever I pressed the icon it sets the volume to zero. This is NOT a button UI, but why does it act like it and how do I fix it??
Thanks in advance!
make sure the image has no pointer click/pointer enter events. if it doesnt then you are clicking in anothe ui button that maybe hidden by the image or is transparent
Your answer
![](https://koobas.hobune.stream/wayback/20220612195417im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I am trying to shoot a ray from an game object on a canvas. 1 Answer
Transform translate not working properly in Canvas 0 Answers
Problem when scrolling through inventory slots 0 Answers
How to animate UI rect transform which works for all resolutions 1 Answer
2D Collider/Trigger on Canvas 2 Answers