Script Execution Order hard to use

With lots of script in a project it’s pretty much impossible to find a script from the popup without any proper search (you can only search for the first letter, which is often the first letter of the namespace). Scrolling is a pain in the ass too, since you can’t do it with the scroll wheel.

Adding it to the .meta file directly doesn’t seem to work either, so the best way seems to be doing it via script with MonoImporter.SetExecutionOrder.

Are there any plans to improve this?

3 Likes

Yeah, it’s a terrible UI for that once you have a lot of scripts. As a pro, it forces me to organize things so I’m not relying on execution order except in the most extreme cases, e.g. the main game manager.

1 Like

Try scrolling through a list of 300 tags too to find the tag you want. Not fun. Adding a new tag takes 30 seconds to scroll to the bottom of the list to find the “Add tag…” choice.

Also I do what Dave-Carlile suggests and avoid using the script execution order when possible. By using LateUpdate instead of Update, needing to use the SEO can be avoided under certain circumstances. Also moving code out of Awake into Start can be useful in avoiding having to use the SEO.

Scroll wheel works fine here, also can’t you just hit the page down key to get to the bottom? Because that works here. Not saying that it’s a good UI of course, but it’s usually enough to just type the first few letters of the script name and hit return, so to me it never registered as being more than mildly annoying.

–Eric

Can confirm the scroll wheel and PgDown/PgUp does not work here when trying to choose a tag or add a script to the script execution order. (On Windows 10 using Unity 5.3, so maybe something changed in later versions of Unity?)
For the tags, I use a “hack” and always make sure the last tag in the list is “z”. Then I can hit the “z” key to jump to the bottom of the list immediately. But still, searching for a tag or script in the lists is still a hassle.

Actually that might be a Windows thing; I think that particular type of popup list is native UI. (On macOS here.)

–Eric

I guess it’s a Windows thing, the way you describe it on Mac sounds usable and like what I’d expect it to be. On Windows you can only search for the first letter, which makes it a huge pain.

If it’s a native component that cannot be fixed by Unity, then a separate search box would be immensely helpful.

It would be really nice if there was an improvement to this. Organizing based on namespace with nested values similar to how the shader dropdown works would be fantastic. As it is, it’s probably one of the most frustrating aspects of using Unity.

It should be noted that you can drag scripts from the Project window into the execution order.
And the fastest way to navigate that popup list on windows is by holding the arrow keys.

3 Likes

The dragging is a lifesend. The arrow keys are next to useless when you have lots of scripts.

Well, seem unity on macOS is awesome.

Thank you, Eric.