Hi guys,
In these days I'm switching old projects from 2D toolkit to NGUI and I need some advices. My GUI structure is really simple: I have a couple of View (menus if you want) with some children underneath like buttons labels and stuff. The View is linked to a mediator that will capture a group of events and notify the View about them.
Now children needs to be notified by the view when something happens. I don't think that dragging in the editor each label, button and etc.. in a View field (array or list) is a viable solution because sometime you forgot one, or delete one and things will break. I was thinking of FindComponentinParents<T> to let each widget register to the proper view field and from there let the View handle the events notification.
Anyone has experience with this kind of structure? Am I overthinking it?