Configuration xLua development environment
https://zhuanlan.zhihu.com/p/34497139
Unity version: 5.3.7 + xLua
Operating environment: Windows10
Why Lua?
Hot update, because again the next package to reduce the lead to customer churn
Why xLua?
The project has a later stage, the heat required to update, how do? Rewrite the code in lua? !! joking with lua plus node judgment on the critical code? What is the key to the code? Is not every method to increase judge?
xLua resolve this matter, on the need for more heat classes plus a Hotfix of Attribute, then convert the code, the equivalent of doing judgment before each method executes, you will be able to add lua registered in each of the methods of the class patch.
In almost friends know that that development environment configuration lua, and do a little comparison
among them:
1.ZeroBraneStudio The program is the first consideration, it was disclosed xLua + ZeroBraneStudio github this solution
GITHZZ / ZeroBraneStudioExample_xlua But research for a long time did not understand how to use, gave up
2.luaStudio a good variety of all kinds of good, not how to find support * .txt files, and the current version does not support Unity resources .lua suffix, in order to be able to read the file must be .txt extension, and expensive death, team development unless there are one or two using a debugger, so give up
3.VS2013 + BabeLua great because I could not find how to * .txt files do not highlight Lua and tips, and gave up
To conclude, because we project only patch of Lua development is not heavily dependent, so decided not to use debug-enabled solutions, debug output log way, end-use solution is VSCode + luaIde-Lite, set the * .txt support for Lua syntax, click the settings icon in the lower left corner / settings
For heavily dependent on the development of Lua, more recommended to use VSCode, lua and C # can develop, debug and support and Unity
Finally, a friend to the solution is to use ideaIC-2017.3 + EmmyLua plug-in, set the super troublesome bunch settings and support * .lua.txt, support for debugging, like the development of Java software, so there is no go test
reference:
xLua Download: Tencent / xLua
Know almost related issues: Unity in lua development tools?
luaStudio:LuaStudio | Professional LuaIDE
ZeroBraneStudio+xLua:GITHZZ/ZeroBraneStudioExample_xlua
VSCode + luaIde plug: VSCode use basis
VS2013 + BabeLua plug: babestudio column - CSDN blog