注册码 http://idea.medeming.com/
emmylua github
https://github.com/EmmyLua/IntelliJ-EmmyLua
unity 调试lua
https://blog.csdn.net/UnityFire/article/details/86612437
补充,如果报错,就下载lua for windows
Program [lua.exe] not found.
Lua for Windows 的下载
https://github.com/rjpcomputing/luaforwindows/releases
几个注意事项
1 下载,File-Setting-Plugin 里搜索 emmylua,最好用管理员权限允许,否则这个插件容易安装失败
2 设置txt关联,File-Setting-Editor-File Type -> lua Language 加上*.lua.txt
3 lua中提示unity内容,File-Project Structure ->Modules 在Dependencies中添加依赖UnityLuaAPI.zip(github上的群里获取),然后就可以使用unity代码提示功能
---@type UnityEngine.GameObject local go print(go.transform)
4 调试xlua
File-Settings-Languages & Frameworks - EmmyLua->Lua additional sources root 这里添加Resoure Root,就是lua存放位置,可以设置多个
调试配置