diff --git a/cocos/ui/UISlider.cpp b/cocos/ui/UISlider.cpp index d152a3acca..b393fa7102 100644 --- a/cocos/ui/UISlider.cpp +++ b/cocos/ui/UISlider.cpp @@ -121,6 +121,7 @@ void Slider::initRenderer() _slidBallRenderer->addChild(_slidBallDisabledRenderer); _slidBallRenderer->setCascadeColorEnabled(true); _slidBallRenderer->setCascadeOpacityEnabled(true); + addProtectedChild(_slidBallRenderer, SLIDBALL_RENDERER_Z, -1); }