Search Unity

Script Execution Order Settings

Discussion in 'Scripting' started by pvk, Dec 20, 2012.

  1. pvk

    pvk

    Joined:
    Jul 18, 2012
    Posts:
    11
    Hi,

    I changed Script Execution Order Settings for my project, I added one script (TestScript.cs) above the default time. This helped in fixing the order of execution bug. In asset server It shows there is a change in script. But when I compared the script for the changes, It shows nothing.

    Where and how the Script "Execution Order Settings" saved.

    Thanks,
    pvk
     
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,620
    They get saved in the project settings, not in the script file itself.
     
  3. pvk

    pvk

    Joined:
    Jul 18, 2012
    Posts:
    11
    Hi,

    Even I thought, it will change in project settings. But unity asset server didn't show any change in project settings. Also I committed the script file in my system and updated the project in my colleagues system and I could see the changes in script execution order.
     
  4. Spanky555

    Spanky555

    Joined:
    May 6, 2013
    Posts:
    7
    I was looking for the same information and found it for our case.

    I have setup my project to use visible meta files and the execution order is actually stored in there:

    fileFormatVersion: 2
    guid: 58a8e8f97c022874687852eeb6e0c4a5
    MonoImporter:
    serializedVersion: 2
    defaultReferences: []
    executionOrder: -50
    icon: {instanceID: 0}
    userData:

    Hope that helps to anyone looking for this info in the future.

    Shawn
     
    unity_826Ewd8tE1WVYg and sonnyb like this.
  5. wightwhale

    wightwhale

    Joined:
    Jul 28, 2011
    Posts:
    397
    This was a confusing one, I was wondering why the execution order wasn't getting pushed then I found the meta file which I never pushed. Thanks, shawn