How can I notify myself when the Editor has finished reloading scripts?

Hi! I have a bad habit of getting distracted when Unity reloads scripts because it takes so long. So I end up changing tabs, doing something else while I wait, and not knowing when Unity is actually finished reloading the scripts. So I would love to figure out a way to get Unity to grab my attention when it’s done either by playing a sound or by making the windows tab turn orange like this:
8227926--1074990--upload_2022-6-23_10-43-48.png
Anything that will grab my attention without having to have the window open.

I have discovered the DidReloadScripts attribute which has allowed me to run a method when the scripts are reloaded. Does anyone know how to play a sound from the Editor? Ideally have it work even when “Mute Audio” is on in the Game panel.

Dunno BUT you can try launching a process that does what you need. Run a batch file echo-ing a bell sign would be the DOS way of doing. More elaborate: just any external player command or opening a browser tab with a rickroll url. :wink: Maybe the latter, Application has an openURL command if I remember correctly.

1 Like