Issue mask in content scrollview cocos creator
Cocos
OCTOBER 30, 2023
Hi, I don’t know which version of cocos creator you are using. I only use the 2.4.x version, don’t know if in 3.x it’s fixed. But in 2.4.x the items outside the cocos mask still render, making it lag. You can fix it by hiding the items outside the mask like this: private hideOutMask() { const { width, height } = this.view.node; const viewRect = cc.rect(-width / 2, -this.layout.node.y - height / 2, width, height); for (const node of this.layout.node.children) { if (viewRect.intersects(node.getBou
Let's personalize your content