Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/mr-kelly/unity_realtime_log
- Owner: mr-kelly
- Created: 2017-03-27T12:51:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T01:34:01.000Z (almost 2 years ago)
- Last Synced: 2024-04-09T19:14:02.331Z (5 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 87
- Watchers: 4
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```