diff --git a/cocos/3d/ui/components/canvas-component.ts b/cocos/3d/ui/components/canvas-component.ts index 689ce1bdba..af4986ee35 100644 --- a/cocos/3d/ui/components/canvas-component.ts +++ b/cocos/3d/ui/components/canvas-component.ts @@ -178,11 +178,11 @@ export class CanvasComponent extends Component { targetDisplay: 0, priority: this._priority, isUI: true, - stages: ['UIFlow'], + flows: ['UIFlow'], }); this._camera!.fov = 45; - this._camera!.clearFlag = GFXClearFlag.DEPTH | GFXClearFlag.STENCIL; + this._camera!.clearFlag = GFXClearFlag.COLOR | GFXClearFlag.DEPTH | GFXClearFlag.STENCIL; const device = cc.director.root.device; this._camera!.resize(device.width, device.height);