Replies: 2 comments 2 replies
-
| 你有没有发现文档里都没有loadfile了……? | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 啊,我看pb.c在luaopen_pb里还有ENTRY(loadfile)啊,那这个loadfile还有什么用吗?实际上现在读取.pb文件也应该使用load了? | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
我的工程里 assert(pb.loadfile 'CProto.pb') 一直报错找不到CProto.pb文件,我是把CProto.pb和这句脚本的文件放在统一目录的。
如果换成assert(pb.load 'CProto.pb') 就没报错了,但按照范例里,加载.pb文件,应该是用pb.loadfile吧。
不太清楚这些load的路径应该怎么处理,毕竟在Unity中其他读取文件的代码都是封装后,使用AA异步读取了。
Beta Was this translation helpful? Give feedback.
All reactions