Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: alexh0101 on March 10, 2015, 09:23:39 AM

Title: Is there anything wrong with executing my scripts before all of NGUI's scripts?
Post by: alexh0101 on March 10, 2015, 09:23:39 AM
Because of an issue of undeclared variable, I have to change the execution order of my scripts.

I put my problematic script right after "Default Time" in MonoManager (right before UIInput and UI2DSprite), but the problem is my draggable scrollview fails to spread its cells horizontally at Start() as it's supposed to: all the cells are on top of each other.

What did I do wrong? How did I mess up NGUI's scripts by just putting one of my scripts right after Default Time?

By trial and error I found that if I put my two problematic scripts at the top (above RealTime), the problem disappears. Would that cause a problem to NGUI if I execute these 2 scripts before NGUI scripts?

Thanks a lot
Title: Re: Is there anything wrong with executing my scripts before all of NGUI's scripts?
Post by: ArenMook on March 10, 2015, 08:37:39 PM
It really depends on what it is you're actually doing inside your scripts, so without knowing that I can't answer your question.