Search Unity

Question Cant add my scripts to Scripts execution order

Discussion in 'Editor & General Support' started by NewMagic-Studio, Aug 14, 2020.

  1. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    After installing a package of models from the unity asset store all packages in package manager were deleted and now i cant add my scripts in the Scripts execution order, when click + button to add the scripts show me scripts from A to P and in Pathfinding script stops and doesnt show me more. I use 2018.3 and dont have any error in console
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
    Hello @NewMagic-Studio,

    Do you know if the package of models that you got from the asset store is changing the Scripts Execution Order?

    Have you checked if you have a similar issue if you install the same package of models on a new project?
     
  3. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    No, i dont see any script in the package and in other project Script execution order works fine. I have also used Reset button in Script execution order before though game worked well anyways but after installing the models all packages in the package manager were uninstalled and i realized Script execution order didnt work either. I used reset in the new project but doesnt make Script execution order fail
     
  4. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    If i want to add for instance any script that starts by "V" like Valve gives me a sound and doesnt do anything, for some reason doesnt give any script beyond Pathfinding, my script is named PlayerManagement and doesnt appear
     
  5. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    Got to add my script with MonoImporter.SetExecutionOrder(MonoScript.FromMonoBehaviour(this), 20000); but doesnt work doing with the Script execution order window
     
  6. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    507
    Have you tried to close your project, delete the Library and Temp folders, and open your project again?
     
  7. ClearRoseOfWar

    ClearRoseOfWar

    Joined:
    Sep 6, 2015
    Posts:
    89
    Be prepared to re-import things twice if you're on android. Once no matter what (cause it will make it standalone / pc) and then again after its done importing, and you manually import it to selected platform.. If you have any errors during this process its cause you're not on the right platform perhaps.

    This also did nothing at all for me, except waste my time.. Thanks anyway.
     
    Last edited: Nov 29, 2020