@galacean/engine-ui 2.0.0-alpha.55 → 2.0.0-alpha.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -3523,9 +3523,7 @@
3523
3523
  var _proto = EngineExtension.prototype;
3524
3524
  _proto._getUIDefaultMaterial = function _getUIDefaultMaterial() {
3525
3525
  if (!this._uiDefaultMaterial) {
3526
- var shader = _getOrCreateUIShader();
3527
- // @ts-ignore
3528
- var material = new engine.Material(this, shader);
3526
+ var material = new engine.Material(this, engine.Engine._builtinShaders.ui);
3529
3527
  material.isGCIgnored = true;
3530
3528
  this._uiDefaultMaterial = material;
3531
3529
  }
@@ -3569,10 +3567,6 @@
3569
3567
  for(var key in GUIComponent){
3570
3568
  engine.Loader.registerClass(key, GUIComponent[key]);
3571
3569
  }
3572
- _getOrCreateUIShader();
3573
- }
3574
- function _getOrCreateUIShader() {
3575
- return engine.Shader.find("2D/UIDefault");
3576
3570
  }
3577
3571
 
3578
3572
  exports.Button = Button;