/unity_realtime_log

Unity realtime log in command line (batchmode)

Primary LanguagePython

unity-realtime-log

Unity realtime log in command line (batchmode)

Why this?

Unity commnad line batch mode has one problem,

It cannot print the log realtime.

So this Python script use subprocess and thread to call Unity batch mode and print the log realtime.

##Now Support Custom Unity Command

Just use -otherUnitySetting "xxx" You Need use quotes.

-otherUnitySetting "otherCommand1 abc otherCommand2 abe otherCommand3 abf"

Use

On Windows:

unity_realtime_log.bat -unity C:\Unity\Unity.exe -project C:\UnityProjectPath -method GameEditor.BuildMethod -logFile C:\UnityProjectPath\1.log -otherUnitySetting "xxx"

On Mac:

unity_realtime_log.sh -unity /Applications/Unity/Unity.app/Contents/MacOS/Unity -project ~/UnityProjectPath -method GameEditor.BuildMethod -logFile /Users/YOURNAME/1.log -otherUnitySetting "xxx"

Or Python:

python unity.py -unity C:\Unity\Unity.exe -project C:\UnityProjectPath -method GameEditor.BuildMethod -logFile C:\UnityProjectPath\1.log -otherUnitySetting "xxx"