240 发简信
IP属地:宁夏
  • 按照步骤集成snapshot,出现下面的错误,如何解决呢,大佬
    LuaException: [string "LuaState.cs"]:6: module 'snapshot' not found:
    no field package.preload['snapshot']
    no file './snapshot.lua'
    no file 'E:/unity5.6.6f2/Editor/lua/snapshot.lua'
    no file 'E:/unity5.6.6f2/Editor/lua/snapshot/init.lua'
    no file 'D:/unity/LuaLeakTest/Assets/ToLua/Lua/snapshot.lua'
    no file 'D:/unity/LuaLeakTest/Assets/Lua/snapshot.lua'
    no file './Resources/snapshot.lua'
    no file 'C:/Users/togchen/AppData/LocalLow/DefaultCompany/LuaLeakTest/Win/Lua/snapshot.lua'
    no file '.\snapshot.dll'
    no file 'E:\unity5.6.6f2\Editor\snapshot.dll'
    no file 'E:\unity5.6.6f2\Editor\loadall.dll'
    stack traceback:
    [C]: in function 'require'
    [string "LuaState.cs"]:6: in function <[string "LuaState.cs"]:3>
    LuaInterface.LuaState:PCall(Int32, Int32) (at Assets/ToLua/Core/LuaState.cs:756)
    LuaInterface.LuaFunction:PCall() (at Assets/ToLua/Core/LuaFunction.cs:96)
    LuaInterface.LuaFunction:Call() (at Assets/ToLua/Core/LuaFunction.cs:120)
    LuaMemoryLeack:Check() (at Assets/ToLua/Examples/20_utf8/LuaMemoryLeack.cs:57)
    UnityEngine.EventSystems.EventSystem:Update()

    Unity手游开发札记——ToLua#集成内存泄露检查和性能检测工具

    0. 前言 有段时间没有写博客了,主要原因是事情有点多,一件接着一件,没有太多整理总结的机会。游戏开发逐渐进入铺量制作的忙碌阶段,趣味性没那么多,新鲜感也少了,虽然还是有很多...