增加一个辅助方法来调用蓝图方法/事件 #411
xuyanghuang-tencent
started this conversation in
Ideas
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 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.
-
当我们在蓝图里定义了一些函数或者事件,命名并不符合程序的套路,比如
Is any ally alive?
或An enemy has been slain
。这些命名在蓝图里都是合法的,但在Lua中如果需要访问则需要:
是否引入一个辅助方法,来帮助代码风格上看起来更舒服一些:
或者UnLua自身尽量保持简洁,上层的工作交给用户框架解决,欢迎讨论。
Beta Was this translation helpful? Give feedback.
All reactions