Skip to content

Commit

Permalink
Again.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jan 13, 2025
1 parent b7dcbd6 commit 15b0473
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cocos/asset/assets/render-texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions cocos/asset/assets/text-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export class TextAsset extends Asset {
return this.text;
}

constructor () {
super();
constructor (name?: string) {
super(name);
}
}

Expand Down
4 changes: 2 additions & 2 deletions cocos/asset/assets/texture-cube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export class TextureCube extends SimpleTexture {
@serializable
_mipmapMode = MipmapMode.NONE;

constructor () {
super();
constructor (name?: string) {
super(name);
}

/**
Expand Down

0 comments on commit 15b0473

Please sign in to comment.