I'd like to run and editor script as soon as Unity launches. The closest I've been able to come is by using a CustomEditor on type Object, which launches as soon as something is selected.
Is it possible to run an editor script function when the Unity editor launches?
asked Sep 09 '10 at 07:30 PM
I have taken the excellent code from the answer pointed to by vitamine and added it to the Community Wiki at http://www.unifycommunity.com/wiki/index.php?title=Autorun .
answered Oct 01 '11 at 06:14 PM
You could try a couple of different methods with OnEnable() (for example, on a class derived from "Editor", or on a custom editor window, or something like that). The only other way I could think of is to have a script with
answered Sep 09 '10 at 07:55 PM