- Home /
Run code while the project is opening (editor mode)?
I would like to run some code as soon as I press my project title in Unity Hub, while the project is being opened in Unity. InitializeOnLoad, EditorApplication callbacks or even command line arguments are not suitable because it all runs as soon as the project is opened, not while it is being opened. Please help!
you need to run unity code while its opening? or just some extra functionality that you can achieve maybe with a python script?
Preferably, Unity code. But it seems to be impossible. So I would also not $$anonymous$$d anything else, like a python script. Do you know how I can achieve that @xxmariofer ?
maybe creating a bat file (if its windows) that when executing not only runs unity but also your python scripts or commands.
I did something similar in linux with sh files to run unity as a frontend, and use ROS (run python scripts and ter$$anonymous$$al commands) for the backend