Search Unity

Question Any Way To Set Terminal Text In Batch Mode?

Discussion in 'Testing & Automation' started by User340, Apr 9, 2019.

  1. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    When launching Unity in batch mode for auto-building, is there a way in Unity to add text to the Terminal window on Mac? I want to indicate the progress of my build. I tried Console.WriteLine but it didn't work. Any ideas?
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    Unfortunately I don't think there's an easy way to do this today.

    The good news is that in 19.2 the Desktops team have make it possible to pass
    -logfile -
    to the Editor and Player when starting up, and this will cause them to write all their log data to stdout instead of to a file. At that point using Console.WriteLine (or Debug.Log) will work just fine.
     
    Last edited: Apr 9, 2019
    User340 likes this.