Author Topic: Sticky for Programmatic control of NGUI?  (Read 4675 times)

SirGive

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Sticky for Programmatic control of NGUI?
« 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.

2.Instantiating prefabs.

3.container spawning labels (looks interesting).

And I have seen the FAQ, 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.
« Last Edit: May 03, 2012, 09:12:59 AM by SirGive »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sticky for Programmatic control of NGUI?
« Reply #1 on: May 03, 2012, 09:13:39 AM »
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.

SirGive

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Sticky for Programmatic control of NGUI?
« Reply #2 on: May 03, 2012, 09:20:19 AM »
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?