From 15b0473ca940fbd116baf26c26e48d9f3b05bac6 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 13 Jan 2025 17:17:13 +0800 Subject: [PATCH] Again. --- cocos/asset/assets/render-texture.ts | 4 ++-- cocos/asset/assets/text-asset.ts | 4 ++-- cocos/asset/assets/texture-cube.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cocos/asset/assets/render-texture.ts b/cocos/asset/assets/render-texture.ts index c1e3dc42004..dc770504102 100644 --- a/cocos/asset/assets/render-texture.ts +++ b/cocos/asset/assets/render-texture.ts @@ -61,8 +61,8 @@ const _windowInfo: IRenderWindowInfo = { @ccclass('cc.RenderTexture') export class RenderTexture extends TextureBase { private _window: RenderWindow | null = null; - constructor () { - super(); + constructor (name?: string) { + super(name); } /** diff --git a/cocos/asset/assets/text-asset.ts b/cocos/asset/assets/text-asset.ts index d6c6fa10e62..654542fc03e 100644 --- a/cocos/asset/assets/text-asset.ts +++ b/cocos/asset/assets/text-asset.ts @@ -45,8 +45,8 @@ export class TextAsset extends Asset { return this.text; } - constructor () { - super(); + constructor (name?: string) { + super(name); } } diff --git a/cocos/asset/assets/texture-cube.ts b/cocos/asset/assets/texture-cube.ts index c7db6870a7f..f1d348ea0ea 100644 --- a/cocos/asset/assets/texture-cube.ts +++ b/cocos/asset/assets/texture-cube.ts @@ -128,8 +128,8 @@ export class TextureCube extends SimpleTexture { @serializable _mipmapMode = MipmapMode.NONE; - constructor () { - super(); + constructor (name?: string) { + super(name); } /**