So, i have one problem.
I have scroll rect that with mask and under it are buttons (spawned dynamically) and content size fitter.
So i spawn button one then two then few texts and so on (some are spawned some not based on conditions.
Its fine and works BUT buttons have dropdown menu (scroll rect that is attached and anchored to button that have dynamic spawning buttons also).
SO THE PROBLEM. I spawn buttons one by one (1 2 3) but dropdown from button 1 is behind button 2 so it cant be clickable, I solved that by adding canvas on button 1 and overriding sorting with graphics raycaster BUT in that case when i scroll buttons, mask doesnt hide those buttons.
anybody have solution?
can i set buttons that are higher in hierarchy to be on top of those that are lower in hierarchy?