Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save renanliberato/42d0ac53bd65f8d0725e6f563df7813d to your computer and use it in GitHub Desktop.

Select an option

Save renanliberato/42d0ac53bd65f8d0725e6f563df7813d to your computer and use it in GitHub Desktop.
check compilation issues on Unity without re-opening the editor
#!/bin/bash
# Find the latest DAG file automatically
latestDag=$(ls -t Library/Bee/*.dag | head -1)
exe="/Applications/Unity/Hub/Editor/6000.0.58f2/Unity.app/Contents/bee_backend"
# Check for C# compilation errors only
"$exe" --profile="Library/Bee/backend_profiler0.traceevents" --stdin-canary --dagfile="$latestDag" --continue-on-failure ScriptAssemblies | grep "error CS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment