- Home /
Dropdown inside mask
I'm currently having an issue with the unity dropdown component. When I use it inside a canvas it automatically checks if it can be displayed downwards, otherwise it will go upwards. This however doesn't apply when used within a mask (eg: inside scrollrect).
Whenever I open the dropdown it goes outside the mask as expected and as it should be. Clicking however on elements that then fall outside the mask are causing the dropdown to close and not select that option. It appears the dropdown isn't catching any clicks from outside the mask, even though it does has its own graphic raycaster.
Answer by Torguise100 · Feb 24, 2016 at 05:50 PM
I too had this issue when attempting to add a dropdown component inside a scroll view, and it seems that the mask is blocking it regardless of the canvas on the template.
after much tinkering i managed to get something that worked for me. I added a canvas, canvas group and graphic raycaster to the dropdown gameobject. This appears to fit the dropdown inside of the mask in which this new canvas is set (although for me it appeared on the opposite side to the template).
Hope this helps
Your answer
Follow this Question
Related Questions
Mask 3D objects inside UI ScrollRect 4 Answers
How to see UI image (static) only trough specific UI element of the Scroll Rect? (Scroll View) 0 Answers
Using UI Text as as mask for an underlying image 2 Answers
RectMask2D clips Text component incorrectly - Minimal Working Example linked 1 Answer
Mask Sprites 1 Answer