Debug Unity script errors: $ARGUMENTS
Process
- •Read console logs via MCP to find errors and warnings
- •Analyze stack traces to locate the source of errors
- •Read the offending scripts and understand the bug
- •Identify root cause — null references, missing components, lifecycle issues, threading, serialization
- •Propose fix with explanation
- •Apply fix after user approval
- •Recompile and verify the error is resolved