From 6779889729ada20b503e81a9dca304d678a60810 Mon Sep 17 00:00:00 2001 From: JoneLau <32630749+JoneLau@users.noreply.github.com> Date: Wed, 18 Dec 2019 22:00:08 +0800 Subject: [PATCH] add type in rendertexture (#5918) --- cocos/core/assets/render-texture.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }