Author Topic: Script Execution Order  (Read 1128 times)

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Script Execution Order
« on: November 10, 2014, 10:31:46 AM »
In the Script Execution Order settings panel I see you have set some order for your classes.
Is there any rule we have to follow to avoid problems?, ie, may I add my own order for my MonoBehaviour in any way or should I follow some rules like "don't put anything within certain values"?
I attack an image about what I mean. I have thought to add me classes between -20 and +9 to avoid bothering your scripts. Does it have sense?
Game developer on Casual Arena.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Script Execution Order
« Reply #1 on: November 10, 2014, 10:01:29 PM »
No rules. You can share the same script execution order value between different scripts, it's not a problem. The script execution order of NGUI scripts is simply necessary for proper NGUI's operation.