Skip to content

Canglangzi/UnityAutoCompile-for-VSCode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [Not yet]


Unity:
Place CLz_AutoCompile under Editor

VsCode:
In VsCode-Extensions-upper right corner-install with .VSIX here

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 

About

Unity background auto compilation for VS Code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%