mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 11:31:59 +08:00
npm run build
This commit is contained in:
@@ -34,6 +34,11 @@ export class UIMaterial {
|
||||
}
|
||||
|
||||
public initialize (info: IUIMaterialInfo): boolean {
|
||||
|
||||
if (!this._material) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this._material = info.material;
|
||||
|
||||
this._pass = this._material.passes[0];
|
||||
|
||||
@@ -106,7 +106,7 @@ export class UI {
|
||||
// material.setProperty('mainTexture', texture);
|
||||
material.update();
|
||||
|
||||
this._uiMaterial = this.createUIMaterial( { material });
|
||||
// this._uiMaterial = this.createUIMaterial( { material });
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user