diff --git a/cocos/core/assets/render-texture.ts b/cocos/core/assets/render-texture.ts index 1f220e6998..dda328d445 100644 --- a/cocos/core/assets/render-texture.ts +++ b/cocos/core/assets/render-texture.ts @@ -48,7 +48,9 @@ export class RenderTexture extends TextureBase { this.reset(); } - @property + @property({ + type: DepthStencilFormat + }) get depthStencilFormat () { return this._depthStencilFormat; }