We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
GObject* GComponent::hitTest(const Vec2& worldPoint, const Camera* camera) { if (_touchDisabled || !_touchable || !_displayObject->isVisible() || !_displayObject->getParent()) return nullptr;
GObject* target = nullptr; if (_maskOwner) { if (_maskOwner->hitTest(worldPoint, camera) != nullptr) { if (((FUIContainer*)_displayObject)->isInverted()) return nullptr; } else { if (!((FUIContainer*)_displayObject)->isInverted()) return nullptr; } }
hitTest里面判断如果有遮罩 则_maskOwner->hitTest 但是_maskOwner本身displayobjet parent就为空 返回nullptr 永远走到else
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: