各位大大,请问个问题,我使用cc.EventListenerCustom:create(“Gather”,eventCustomListener1)在lua里注册了事件Gather,然后在c++代码发送了事件,lua里面能收到事件,但是
取到的event._usedata为nil,看了下抛出函数,setUserData和getUserData()已被屏蔽。请如何得到event的数据啊
跨脚本访问还是lua binding 比较好吧
自己写一个数据变量进行传递,目前我是这么做的。话说我也不是很明白为什么要把_userdata 这个变量在bind到lua时屏蔽掉,是有问题?什么问题?