-
Notifications
You must be signed in to change notification settings - Fork 108
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
cocos2dx 组件设置遮罩 无法点击 #108
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GObject* GComponent::hitTest(const Vec2& worldPoint, const Camera* camera)
{
if (_touchDisabled || !_touchable || !_displayObject->isVisible() || !_displayObject->getParent())
return nullptr;
hitTest里面判断如果有遮罩 则_maskOwner->hitTest 但是_maskOwner本身displayobjet parent就为空 返回nullptr 永远走到else
The text was updated successfully, but these errors were encountered: