- Home /
Creating project with script
Hello,
I have got a question, if it is possible to create Unity project without opening Unity?
What I have done so far is, that I create Unity project(in Unity), then I write initializing script(in Visual Studio). Then this script I insert into empty object in Unity and after hitting play button(Unity), game is created.
I would like to eliminate need to open unity and creating of empty object, which will be assigned initializing script.
I just want create some scripts in Visual Studio(VS), link some libraries and after hitting debug button in VS, I would like to see my game.
Any help or idea is very appreciated.
Answer by supernat · Feb 01, 2014 at 04:51 AM
Sure, you can get close (maybe even exactly what you want). See here: http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html
You can create a project, execute some methods (to create your cube and attach the script), and build a target, all from the command line. You could then assign that target exe to the VS project debug path.
Your answer
Follow this Question
Related Questions
DLL placement 1 Answer
Any way to make Editor scripts available to all projects? 1 Answer
Getting texture from project files and placing in script 1 Answer
Saving an object from script to project? 0 Answers
Is it good to have many scripts? 1 Answer