Thank you for submitting your inquiry.
You can track the status of your inquiry here.
You may want to save your case's ticket: 560137_5p90morai1utgu6o


    (Closed) New scripts are not detected when running editor with -
     
     
     
    3
    -e 1) What happened
    New scripts are not detected when running editor with -batchmode flag.


    2) How can we reproduce it using the example you attached.
    Create an empty project with one editor script containing one static method
    Add one runtime script and close editor.
    add new runtime script with editor closed and make first script depend on the new one.

    run editor script via batch mode:
    Unity -quit -batchmode -executeMethod "EditorScript.Test"

    unity fails with "script not found" error

    if you run the same command again, it passes.


    3) Workaround for the problem.
    If i run unity batch mode 2 times, it executes correctly.
    Unity -quit -batchmode
    Unity -quit -batchmode -executeMethod "EditorScript.Test"


    4) Required fix.
    Unity should refresh asset database before executing -executeMethod when running in batch mode. (currently seems it is done after)

     
       
      To follow up on this case, send email to bugs@unity3d.com mentioning 'Case 560137' in the subject.
      Your Cases:
      Case Title Status Date Opened
      560137 New scripts are not detected when running editor with - Closed 8/28/2013 11:14 AM
      545951 -e Editor crashed on debug with monodevelop Closed 6/5/2013 11:25 AM