
Unity和Lua
Little丶Seven
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Lua Load() 字符串转代码并传参数
Lua Load() 字符串转代码并传参数原创 2024-05-18 22:40:18 · 418 阅读 · 0 评论 -
[游戏开发][unity]Xlua中使用proto、json、lpeg
Unity Xlua中使用proto、json、lpeg原创 2022-09-28 15:57:29 · 2131 阅读 · 0 评论 -
[游戏开发]Lua相关
查找全局变量方法一setmetatable(_G, { __newindex = function (_, k) error("Attempt to write to undeclared variable " .. k) end, __index = function (_, k) error("Attempt to read undeclared variable " .. k) end})print...原创 2021-12-14 11:11:43 · 2401 阅读 · 0 评论 -
[游戏开发] lua读取bytes文件并解析proto
C#序列化proto后生成bytes文件,在lua层解析成protofunction Process_RunBattle:GetProto(path) local result = self:read_file(path) --字节流转换成字符串 local str = string.char(unpack(result)) --protobuf解析字符串 local proto = NetStruct_BattleCommand_pb.BattleComman原创 2021-03-30 11:30:44 · 2618 阅读 · 0 评论