Ailtop
Ailtop
> @ElChupos Hello! Fixed the conflict with the main branch. Maybe support GridLayoutGroup?
var L = luaL_newstate(); luaL_openlibs(L); { // luaL_dostring(L, "config = {'您好'}"); // Direct dostring is correct luaL_dofile(L, "D:\\main.lua"); // but dofile is not correct, file encoding is UTF-8, file content...
Lua53
luaL_dostring(L, File.ReadAllText("D:\\main.lua")); // this is also correct It looks like the dofile is incorrect.
There is no error in luaL_dofile. I've given you all the code to try out.
In c to C#, 'const char *buff' should correspond to 'byte[] buff', not 'string buff', using string will result in the wrong size being passed. ``` public static int _luaL_dofile(lua_State...
类似于生命周期吧,中断也是,主要是为了方便做一些初始化和还原状态等等。很多行为树框架都有这种生命周期 [https://github.com/CatImmortal/CatBehaviour/blob/main/Assets/Scripts/CatBehaviour/Runtime/Node/BaseNode.cs](https://github.com/CatImmortal/CatBehaviour/blob/main/Assets/Scripts/CatBehaviour/Runtime/Node/BaseNode.cs) [https://github.com/AkiKurisu/AkiBT/blob/main/Runtime/Core/Model/Node/Root.cs](https://github.com/AkiKurisu/AkiBT/blob/main/Runtime/Core/Model/Node/Root.cs)