We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当UFUNCTION返回值是TArray&,或者委托参数是TArray&时,lua中接收然后对TArray进行操作(如增删),C++中没有发生改变。 UFUNCTION返回值这个是一直都存在问题,委托参数是unlua2.0之后出现问题。
C++:
UFUNCTION() TArray<int32>& GetArray() { return TestArray; }
Lua:
local array = self:GetArray() array:Add(1) array:Add(2) array:Add(3) print(array:Length())
Lua中length是3,但C++中获取的是0。
The text was updated successfully, but these errors were encountered:
修正:委托参数是TArray&时,在lua中修改无效 #362
0ffe4b6
增加:回归测试 #362
1ea20af
No branches or pull requests
当UFUNCTION返回值是TArray&,或者委托参数是TArray&时,lua中接收然后对TArray进行操作(如增删),C++中没有发生改变。
UFUNCTION返回值这个是一直都存在问题,委托参数是unlua2.0之后出现问题。
C++:
Lua:
Lua中length是3,但C++中获取的是0。
The text was updated successfully, but these errors were encountered: