I need a widget which has a size, but has no sprite or text, and should have a depth like other widgets so it can react to OnHover, OnPress and OnDrag events. Up till now I've done this with my own scripts and a collider, which worked fine as long as I set the collider Z correctly. Today I upgraded to 3.0.2 and have found that this no longer works since other widgets no longer require the collider Z to be set based on depth. In some cases, no matter what I set the depth of my "invisible" widget to, I can never get it to be on top of the other widgets and receive the mouse events.
So I'm wondering, would it be possible/sensible to make an actual invisible widget, something which derives from UIWidget, so that it inherits all the depth functionality? I've looked into the code of other widgets and had a go at creating one of these myself, but couldn't really work out which bits I need and which bits I didn't. Could anyone give me pointers on how to go about creating this, or is there any easier options that I'm missing?