cocos2dx-Lua 3.17 ClippingNode制作圆形头像不起作用,是不是3.17 有问题

之前自己尝试写代码不起作用,后面在论坛里面找到以下代码实现也是不行
local headImg = ccui.ImageView:create()
headImg:ignoreContentAdaptWithSize(true)
headImg:loadTexture(“headBg.png”)
local stencilNode = cc.Node:create()–创建一个遮罩底纹的容器
local stencil = cc.Sprite:create()–准备一张图作为底纹,放进遮罩stencilNode
stencil:setTexture(“111.jpg”)
stencilNode:addChild(stencil)–把遮罩底纹放进去
self.headClipingImg = cc.ClippingNode:create(stencilNode)–创建遮罩层,需要遮罩的东西放里面
self.headClipingImg:addChild(headImg)
self.headClipingImg:setAlphaThreshold(0)
self.headClipingImg:setPosition(cc.p(300, 60))
imgBg:addChild(self.headClipingImg)

只有头像框,框里面完全是透明