Skip to content
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

ui::Widget::hitTest needs manual Lua binding #19561

Open
Xrysnow opened this issue Mar 31, 2019 · 0 comments
Open

ui::Widget::hitTest needs manual Lua binding #19561

Xrysnow opened this issue Mar 31, 2019 · 0 comments

Comments

@Xrysnow
Copy link

Xrysnow commented Mar 31, 2019

  • cocos2d-x version: 3.17.1
  • devices test on: Windows PC
  • developing environments
    • VS version: Community 2017

The auto binding for ui::Widget::hitTest is invalid due to the binding of Vec3*:

https://github.com/cocos2d/cocos2d-x/blob/a3a536e5af08e87d742ec2f01732d77c0589aa11/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp#L3140

Steps to Reproduce:

Lua code:

local wi = ccui.Widget:create()
wi:hitTest(cc.p(0, 0), cc.Director:getInstance():getRunningScene():getDefaultCamera(), cc.vec3(0, 0, 0))

It will cause a Lua error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant