Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: SirGive on May 03, 2012, 09:03:39 AM
-
Could there be a sticky that points to other threads that involve controlling the majority of GUI setup and/or handling events through scripts? (Examples/tutorials involving this would be awesome, too!)
1.Great example of how to catch events (http://www.tasharen.com/forum/index.php?topic=184.0).
2.Instantiating prefabs (http://www.tasharen.com/forum/index.php?topic=182.0).
3.container spawning labels (http://www.tasharen.com/forum/index.php?topic=148.0)(looks interesting).
And I have seen the FAQ (http://www.tasharen.com/forum/index.php?topic=6.0), and dragging many scripts onto an object is nice for some. But I'm really interested how to (easily) create a manager and link quite a few elements into the script. I'm also hoping there is a way to add events to the objects (i.e. tween) and set those up in code as well (and avoid just attaching the script to the object).
From the few examples I've seen (I've only been looking since yesterday), it appears the general way to add custom stuff is to write a script per element. I'm trying to avoid that.
I haven't seen much dealing with this other than the inventory example. I'm currently evaluating the free version, however. So I don't know the extent of that one.
-
Generally devs read code instead of forums, which is why I always leave my code well-commented. Questions that get added frequently will go into the FAQ, and I can certainly create a sticky with useful resources later on.
-
That is true. I'm just having some difficulty finding resources with examples of some complex UI systems contained in a one script manager type deal. Any good examples around?