-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
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
关于TArray导出给lua的接口 #41
Comments
|
我的意思是,lua中使用TArray,直观想法就当它是一个原生TArray实例来用的,然而在lua中使用这个实例的方式(下标、接口名),与C++中使用的方式不一致,就会困惑。 |
@Junho2009 原因已经写过了 |
@rowechien 虽然Close了,借楼问一下, |
lua本身就不支持 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这些接口,跟使用TArray有不少差异,如:
1、接口对index的起始索引的理解,是从1开始的。
2、有些接口名与TArray原生接口名不一致,如“Num”->“Length”。
请问这样的设计是基于什么考虑呢?这样对原有代码的兼容性其实不太友好呢,使用时也要比较注意,需要把这个本在C++层是FScriptArray的对象、当做另一个LuaArray来用。
The text was updated successfully, but these errors were encountered: