Huy Minh Ha

Software development, Tech and other stuff

Thu 02 February 2017

Better Unity workflow with command line

Posted by Ha.Minh in Unity   

To do certain tasks for our game workflow, we will need to use other external tools that can only called from the command line. One way to do this is to switch back and forth between Unity and the command line, obviously this is not the best way. Our goal is to use only 1 click, or one action to execute a series of tasks in Unity and in the command line.

There are 2 ways to achieve this:

  • Create an editor script and call the command line, along with other Editor scripts. This is good if you want to stay in Unity all the time.
  • Create a command line script that call other command line scripts and some Unity scripts. This is good for continuous integration.

To launch Unity from the command line, look at these references:

To run command line scripts from Unity, look at these references:


    
 
 

Comments