Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mr-kelly/unity_realtime_log

Unity realtime log in command line (batchmode)
https://github.com/mr-kelly/unity_realtime_log

Last synced: about 2 months ago
JSON representation

Unity realtime log in command line (batchmode)

Awesome Lists containing this project

README

        

# 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.

```shell
-otherUnitySetting "otherCommand1 abc otherCommand2 abe otherCommand3 abf"
```

## Use

On Windows:

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

On Mac:

```shell
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:

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