@galacean/engine-core 0.0.0-experimental-0.9-plus.5 → 0.0.0-experimental-0.9-plus.6

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/main.js CHANGED
@@ -10131,6 +10131,14 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
10131
10131
  };
10132
10132
  /**
10133
10133
  * @internal
10134
+ */ _proto._cloneTo = function _cloneTo(target) {
10135
+ var materials = this._materials;
10136
+ for(var i = 0, n = materials.length; i < n; i++){
10137
+ target._setMaterial(i, materials[i]);
10138
+ }
10139
+ };
10140
+ /**
10141
+ * @internal
10134
10142
  */ _proto._onDestroy = function _onDestroy() {
10135
10143
  this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
10136
10144
  this.shaderData._addRefCount(-1);
@@ -10309,7 +10317,7 @@ __decorate([
10309
10317
  ignoreClone
10310
10318
  ], exports.Renderer.prototype, "_overrideUpdate", void 0);
10311
10319
  __decorate([
10312
- shallowClone
10320
+ ignoreClone
10313
10321
  ], exports.Renderer.prototype, "_materials", void 0);
10314
10322
  __decorate([
10315
10323
  ignoreClone
@@ -10531,6 +10539,7 @@ SimpleSpriteAssembler = __decorate([
10531
10539
  /**
10532
10540
  * @internal
10533
10541
  */ _proto._cloneTo = function _cloneTo(target) {
10542
+ Renderer.prototype._cloneTo.call(this, target);
10534
10543
  target.sprite = this._sprite;
10535
10544
  };
10536
10545
  /**
@@ -12974,6 +12983,7 @@ var VertexChangedFlags;
12974
12983
  /**
12975
12984
  * @internal
12976
12985
  */ _proto._cloneTo = function _cloneTo(target) {
12986
+ Renderer.prototype._cloneTo.call(this, target);
12977
12987
  target.mesh = this._mesh;
12978
12988
  };
12979
12989
  /**
@@ -19935,6 +19945,7 @@ SlicedSpriteAssembler = __decorate([
19935
19945
  /**
19936
19946
  * @internal
19937
19947
  */ _proto._cloneTo = function _cloneTo(target) {
19948
+ Renderer.prototype._cloneTo.call(this, target);
19938
19949
  target.sprite = this._sprite;
19939
19950
  target.drawMode = this._drawMode;
19940
19951
  };
@@ -20688,6 +20699,7 @@ var /**
20688
20699
  /**
20689
20700
  * @internal
20690
20701
  */ _proto._cloneTo = function _cloneTo(target) {
20702
+ Renderer.prototype._cloneTo.call(this, target);
20691
20703
  target.font = this._font;
20692
20704
  target._subFont = this._subFont;
20693
20705
  };