Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Unity Auto CompilationNew to Visual Studio Code? Get it now.
Unity Auto Compilation

Unity Auto Compilation

PostCyberPunk

|
1,011 installs
| (0) | Free
Unity will auto-compiles in background when code save files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Unity Auto Compile

this extesion will trigger Unity to compile when saved a file in VS Code. Animation

Requirement

Install this package to your projcet

Known isssues

~~You have to force compile once before the auto-compilation works~~

~~If there is errors in Unity the auto compilation will stop~~

Commands

Unity Force Compile: unity-auto-compile.compile Toggle Unity Compilation :unity-auto-compile.toggle

How it works

Unity will host a HTTP listener,Code will send a GET request to unity when a file is saved,then Unity will call assetDatabase.Refresh()

Inspried by baba-s's project

Notes

Extension will auto activate when there is a folder named "ProjectSettings" in workspace,or you can run Unity Force Compile once to activate it.

Extension Settings

"unity-auto-compile.enabled":true,
"unity-auto-compile.port": "10245",//the HTTP port between unity and vscode 
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft