How do I get the editor to compile new scripts w/o changing focus then coming back?

Hi all,

I’ve got a custom editor window that has a “compile” button that, once pushed, compiles out data into files but also creates/modifies a C# script. In order to get Unity3 to recognize the updated C# file, I need to change focus to some other window on my Mac and then re-focus Unity. I can’t find the method that I need to call to have Unity automatically load in the changed C# script so that I don’t have to switch focus.

Anybody know what method will do this for me? Having trouble using the search feature in the documentation to find this method for me.

Thanks!

You can always use Google to search the docs, since they are online.

–Eric

That should be what you want.

Awesome, thanks billykater.