Fallever

Results 9 comments of Fallever

**另外请教下怎么让它正确识别其他脚本中意义的全局变量?** 比如我在一个脚本中定义了gRoot 的全局变量 ![image](https://user-images.githubusercontent.com/15180187/62818121-20f4e980-bb75-11e9-8ae1-1c789d23b4f6.png) 但是在另外一个脚本中使用gRoot时,还是会被插件认为是未定义的全局变量: ![image](https://user-images.githubusercontent.com/15180187/62818139-6fa28380-bb75-11e9-8dea-f499baf67775.png)

> 改用 `---@class Command`。 至于外部不能使用,以后会通过 `---@field private field type` 来 实现。 不是的. 整个`LeagueCreateCmd`都不需要出现在智能提示中, 因为不会被其他lua代码引用. 原来是没有加注解的, 加`---@type Command` 是为了可以在智能提示中显示Command的方法

@sumneko 老铁能不能在看看这个问题 😃 :

WebGL应该需要c源码,跟xlua没关系 看看文档吧

提交个打包日志 [Editor.log](https://github.com/user-attachments/files/18147139/Editor.log)

> That don't works with csharp array : I will have an error like that : `LuaException: xlua/util.lua:36: index out of range! i =4, array.Length=4` use `pairs` instead of `ipairs`