Getting Started with Lua¶
The following will help you set up your project to use VSCode as a Lua development environment.
Installing Dependencies¶
You will need to install the following, following the vendors' instructions for your individual operating system:
- A working CCK Project in Unity
- Visual Studio Code
- sumneko.lua extension
Configure the project¶
This only needs to be done once.
- Close all VSCode windows to avoid weird bugs from editing things VSCode has open.
- In the Unity Editor, run Alpha Blend Interactive > Scripting > Set Up VSCode
Your project is now ready for VSCode! You will now get syntax highlighting and auto-complete in Lua files.
Note
Remember to always open the project folder (above Assets) in VSCode rather than individual *.lua
files, otherwise LuaLS autocomplete and linting will not work properly.