diff --git a/cocos/ui/UILayout.cpp b/cocos/ui/UILayout.cpp index be628e30f9..243268be3e 100644 --- a/cocos/ui/UILayout.cpp +++ b/cocos/ui/UILayout.cpp @@ -705,7 +705,7 @@ bool Layout::isClippingEnabled() void Layout::visit(Renderer *renderer, const Mat4 &parentTransform, bool parentTransformUpdated) { - if (!_enabled) + if (!_visible) { return; }