Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - natecope

Pages: [1]
1
NGUI 3 Documentation / Re: UIToggle
« on: February 18, 2014, 12:41:08 PM »
Ah of course, how simple.

Inits happen in either Awake() or Start() in my game manager. Is the end of Start() a suitable place to start recognizing toggles?

Thank you for being responsive, btw. I've run into many assets where the author doesn't bother to answer questions, especially from noobs such as myself. It's appreciated.

2
NGUI 3 Documentation / Re: UIToggle
« on: February 17, 2014, 02:01:07 PM »
It's intentional for it to be called on start. It's done for consistency, to ensure that callbacks are in the proper state and match the toggle.

I'm having an issue with this functionality. The event is fired on startup, and my code reacts when a toggle is changed. How do I get around that? Can I shut this off, or will that cause more issues? Is there a simple way to get around this without modifying NGUI code? I'm sure it's a simple logic change in my code, but I'm brainfarting hardcore right now regarding this.

thank you!

Pages: [1]