@galacean/engine 1.1.0-beta.6 → 1.1.0-beta.8

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
@@ -5520,6 +5520,7 @@
5520
5520
  for(var i = 0; i < length; i++){
5521
5521
  CloneManager.cloneProperty(sourceProperty, targetPropertyA, i, cloneMode);
5522
5522
  }
5523
+ break;
5523
5524
  default:
5524
5525
  var _target, _k;
5525
5526
  var targetOProperty = (_target = target)[_k = k] || (_target[_k] = new sourceProperty.constructor());
@@ -7769,14 +7770,14 @@
7769
7770
  }
7770
7771
  return end;
7771
7772
  };
7772
- _proto.forEach = function forEach(callbackFn) {
7773
+ _proto.forEach = function forEach(callbackFn, swapFn) {
7773
7774
  this._startLoop();
7774
7775
  var elements = this._elements;
7775
7776
  for(var i = 0; i < this.length; i++){
7776
7777
  var element = elements[i];
7777
7778
  element && callbackFn(element);
7778
7779
  }
7779
- this._endLoop();
7780
+ this._endLoop(swapFn);
7780
7781
  };
7781
7782
  _proto.forEachAndClean = function forEachAndClean(callbackFn) {
7782
7783
  this._startLoop();
@@ -7793,16 +7794,24 @@
7793
7794
  _proto._startLoop = function _startLoop() {
7794
7795
  this._isLooping = true;
7795
7796
  };
7796
- _proto._endLoop = function _endLoop() {
7797
+ _proto._endLoop = function _endLoop(swapFn) {
7797
7798
  this._isLooping = false;
7798
7799
  if (this._blankCount) {
7800
+ var from = 0;
7801
+ var to = this.length - 1;
7799
7802
  var elements = this._elements;
7800
- for(var i = 0, j = 0, n = this.length; i < n; i++){
7801
- var element = elements[i];
7802
- if (element) {
7803
- elements[j++] = element;
7804
- }
7805
- }
7803
+ partition: do {
7804
+ while(elements[from])if (++from >= to) {
7805
+ break partition;
7806
+ }
7807
+ while(!elements[to])if (from >= --to) {
7808
+ break partition;
7809
+ }
7810
+ var swapElement = elements[to];
7811
+ swapFn(swapElement, from);
7812
+ elements[from++] = swapElement;
7813
+ elements[to--] = null;
7814
+ }while (from < to);
7806
7815
  this.length -= this._blankCount;
7807
7816
  this._blankCount = 0;
7808
7817
  }
@@ -18049,11 +18058,15 @@
18049
18058
  if (this._currentEnteredEntity) {
18050
18059
  this._currentEnteredEntity._scripts.forEach(function(element) {
18051
18060
  element.onPointerExit(_this);
18061
+ }, function(element, index) {
18062
+ element._entityScriptsIndex = index;
18052
18063
  });
18053
18064
  }
18054
18065
  if (rayCastEntity) {
18055
18066
  rayCastEntity._scripts.forEach(function(element) {
18056
18067
  element.onPointerEnter(_this);
18068
+ }, function(element, index) {
18069
+ element._entityScriptsIndex = index;
18057
18070
  });
18058
18071
  }
18059
18072
  this._currentEnteredEntity = rayCastEntity;
@@ -18066,6 +18079,8 @@
18066
18079
  if (rayCastEntity) {
18067
18080
  rayCastEntity._scripts.forEach(function(element) {
18068
18081
  element.onPointerDown(_this);
18082
+ }, function(element, index) {
18083
+ element._entityScriptsIndex = index;
18069
18084
  });
18070
18085
  }
18071
18086
  this._currentPressedEntity = rayCastEntity;
@@ -18077,6 +18092,8 @@
18077
18092
  if (this._currentPressedEntity) {
18078
18093
  this._currentPressedEntity._scripts.forEach(function(element) {
18079
18094
  element.onPointerDrag(_this);
18095
+ }, function(element, index) {
18096
+ element._entityScriptsIndex = index;
18080
18097
  });
18081
18098
  }
18082
18099
  };
@@ -18090,6 +18107,8 @@
18090
18107
  pressedEntity._scripts.forEach(function(element) {
18091
18108
  sameTarget && element.onPointerClick(_this);
18092
18109
  element.onPointerUp(_this);
18110
+ }, function(element, index) {
18111
+ element._entityScriptsIndex = index;
18093
18112
  });
18094
18113
  this._currentPressedEntity = null;
18095
18114
  }
@@ -18657,11 +18676,24 @@
18657
18676
  };
18658
18677
  /**
18659
18678
  * @internal
18679
+ */ _proto._cloneTo = function _cloneTo(target) {
18680
+ var shapes = target._shapes;
18681
+ for(var i = 0, n = shapes.length; i < n; i++){
18682
+ target._addPhysicsShape(shapes[i]);
18683
+ }
18684
+ };
18685
+ /**
18686
+ * @internal
18660
18687
  */ _proto._onDestroy = function _onDestroy() {
18661
18688
  Component1.prototype._onDestroy.call(this);
18662
18689
  this.clearShapes();
18663
18690
  this._nativeCollider.destroy();
18664
18691
  };
18692
+ _proto._addPhysicsShape = function _addPhysicsShape(shape) {
18693
+ shape._collider = this;
18694
+ this._nativeCollider.addShape(shape._nativeShape);
18695
+ this._phasedActiveInScene && this.scene.physics._addColliderShape(shape);
18696
+ };
18665
18697
  _create_class$3(Collider, [
18666
18698
  {
18667
18699
  key: "shapes",
@@ -18677,6 +18709,15 @@
18677
18709
  __decorate$1([
18678
18710
  ignoreClone
18679
18711
  ], exports.Collider.prototype, "_index", void 0);
18712
+ __decorate$1([
18713
+ ignoreClone
18714
+ ], exports.Collider.prototype, "_nativeCollider", void 0);
18715
+ __decorate$1([
18716
+ ignoreClone
18717
+ ], exports.Collider.prototype, "_updateFlag", void 0);
18718
+ __decorate$1([
18719
+ deepClone
18720
+ ], exports.Collider.prototype, "_shapes", void 0);
18680
18721
  exports.Collider = __decorate$1([
18681
18722
  dependentComponents(Transform, exports.DependentMode.CheckOnly)
18682
18723
  ], exports.Collider);
@@ -18698,11 +18739,15 @@
18698
18739
  var collision = PhysicsScene._collision;
18699
18740
  collision.shape = shape2;
18700
18741
  element.onCollisionEnter(collision);
18742
+ }, function(element, index) {
18743
+ element._entityScriptsIndex = index;
18701
18744
  });
18702
18745
  shape2.collider.entity._scripts.forEach(function(element) {
18703
18746
  var collision = PhysicsScene._collision;
18704
18747
  collision.shape = shape1;
18705
18748
  element.onCollisionEnter(collision);
18749
+ }, function(element, index) {
18750
+ element._entityScriptsIndex = index;
18706
18751
  });
18707
18752
  };
18708
18753
  this._onContactExit = function(obj1, obj2) {
@@ -18713,11 +18758,15 @@
18713
18758
  var collision = PhysicsScene._collision;
18714
18759
  collision.shape = shape2;
18715
18760
  element.onCollisionExit(collision);
18761
+ }, function(element, index) {
18762
+ element._entityScriptsIndex = index;
18716
18763
  });
18717
18764
  shape2.collider.entity._scripts.forEach(function(element) {
18718
18765
  var collision = PhysicsScene._collision;
18719
18766
  collision.shape = shape1;
18720
18767
  element.onCollisionExit(collision);
18768
+ }, function(element, index) {
18769
+ element._entityScriptsIndex = index;
18721
18770
  });
18722
18771
  };
18723
18772
  this._onContactStay = function(obj1, obj2) {
@@ -18728,11 +18777,15 @@
18728
18777
  var collision = PhysicsScene._collision;
18729
18778
  collision.shape = shape2;
18730
18779
  element.onCollisionStay(collision);
18780
+ }, function(element, index) {
18781
+ element._entityScriptsIndex = index;
18731
18782
  });
18732
18783
  shape2.collider.entity._scripts.forEach(function(element) {
18733
18784
  var collision = PhysicsScene._collision;
18734
18785
  collision.shape = shape1;
18735
18786
  element.onCollisionStay(collision);
18787
+ }, function(element, index) {
18788
+ element._entityScriptsIndex = index;
18736
18789
  });
18737
18790
  };
18738
18791
  this._onTriggerEnter = function(obj1, obj2) {
@@ -18741,9 +18794,13 @@
18741
18794
  var shape2 = physicalObjectsMap[obj2];
18742
18795
  shape1.collider.entity._scripts.forEach(function(element) {
18743
18796
  element.onTriggerEnter(shape2);
18797
+ }, function(element, index) {
18798
+ element._entityScriptsIndex = index;
18744
18799
  });
18745
18800
  shape2.collider.entity._scripts.forEach(function(element) {
18746
18801
  element.onTriggerEnter(shape1);
18802
+ }, function(element, index) {
18803
+ element._entityScriptsIndex = index;
18747
18804
  });
18748
18805
  };
18749
18806
  this._onTriggerExit = function(obj1, obj2) {
@@ -18752,9 +18809,13 @@
18752
18809
  var shape2 = physicalObjectsMap[obj2];
18753
18810
  shape1.collider.entity._scripts.forEach(function(element) {
18754
18811
  element.onTriggerExit(shape2);
18812
+ }, function(element, index) {
18813
+ element._entityScriptsIndex = index;
18755
18814
  });
18756
18815
  shape2.collider.entity._scripts.forEach(function(element) {
18757
18816
  element.onTriggerExit(shape1);
18817
+ }, function(element, index) {
18818
+ element._entityScriptsIndex = index;
18758
18819
  });
18759
18820
  };
18760
18821
  this._onTriggerStay = function(obj1, obj2) {
@@ -18763,9 +18824,13 @@
18763
18824
  var shape2 = physicalObjectsMap[obj2];
18764
18825
  shape1.collider.entity._scripts.forEach(function(element) {
18765
18826
  element.onTriggerStay(shape2);
18827
+ }, function(element, index) {
18828
+ element._entityScriptsIndex = index;
18766
18829
  });
18767
18830
  shape2.collider.entity._scripts.forEach(function(element) {
18768
18831
  element.onTriggerStay(shape1);
18832
+ }, function(element, index) {
18833
+ element._entityScriptsIndex = index;
18769
18834
  });
18770
18835
  };
18771
18836
  this._scene = scene;
@@ -18798,6 +18863,9 @@
18798
18863
  }
18799
18864
  var onRaycast = function onRaycast(obj) {
18800
18865
  var shape = _this._scene.engine._physicalObjectsMap[obj];
18866
+ if (!shape) {
18867
+ return false;
18868
+ }
18801
18869
  return shape.collider.entity.layer & layerMask && shape.isSceneQuery;
18802
18870
  };
18803
18871
  if (hitResult != undefined) {
@@ -19020,7 +19088,6 @@
19020
19088
  */ _proto._onLateUpdate = function _onLateUpdate() {
19021
19089
  var position = this.entity.transform.worldPosition;
19022
19090
  this._nativeCollider.getWorldPosition(position);
19023
- this.entity.transform.worldPosition = position;
19024
19091
  this._updateFlag.flag = false;
19025
19092
  };
19026
19093
  /**
@@ -19176,6 +19243,25 @@
19176
19243
  this._nativeCollider.getWorldTransform(worldPosition, worldRotationQuaternion);
19177
19244
  this._updateFlag.flag = false;
19178
19245
  };
19246
+ /**
19247
+ * @internal
19248
+ */ _proto._cloneTo = function _cloneTo(target) {
19249
+ Collider1.prototype._cloneTo.call(this, target);
19250
+ target.linearDamping = this.linearDamping;
19251
+ target.angularDamping = this.angularDamping;
19252
+ target.linearVelocity = this.linearVelocity;
19253
+ target.angularVelocity = this.angularVelocity;
19254
+ target.mass = this.mass;
19255
+ target.centerOfMass = this.centerOfMass;
19256
+ target.inertiaTensor = this.inertiaTensor;
19257
+ target.maxAngularVelocity = this.maxAngularVelocity;
19258
+ target.maxDepenetrationVelocity = this.maxDepenetrationVelocity;
19259
+ target.sleepThreshold = this.sleepThreshold;
19260
+ target.solverIterations = this.solverIterations;
19261
+ target.isKinematic = this.isKinematic;
19262
+ target.constraints = this.constraints;
19263
+ target.collisionDetectionMode = this.collisionDetectionMode;
19264
+ };
19179
19265
  _proto._setLinearVelocity = function _setLinearVelocity() {
19180
19266
  this._nativeCollider.setLinearVelocity(this._linearVelocity);
19181
19267
  };
@@ -19384,6 +19470,48 @@
19384
19470
  ]);
19385
19471
  return DynamicCollider;
19386
19472
  }(exports.Collider);
19473
+ __decorate$1([
19474
+ ignoreClone
19475
+ ], DynamicCollider.prototype, "_linearDamping", void 0);
19476
+ __decorate$1([
19477
+ ignoreClone
19478
+ ], DynamicCollider.prototype, "_angularDamping", void 0);
19479
+ __decorate$1([
19480
+ ignoreClone
19481
+ ], DynamicCollider.prototype, "_linearVelocity", void 0);
19482
+ __decorate$1([
19483
+ ignoreClone
19484
+ ], DynamicCollider.prototype, "_angularVelocity", void 0);
19485
+ __decorate$1([
19486
+ ignoreClone
19487
+ ], DynamicCollider.prototype, "_mass", void 0);
19488
+ __decorate$1([
19489
+ ignoreClone
19490
+ ], DynamicCollider.prototype, "_centerOfMass", void 0);
19491
+ __decorate$1([
19492
+ ignoreClone
19493
+ ], DynamicCollider.prototype, "_inertiaTensor", void 0);
19494
+ __decorate$1([
19495
+ ignoreClone
19496
+ ], DynamicCollider.prototype, "_maxAngularVelocity", void 0);
19497
+ __decorate$1([
19498
+ ignoreClone
19499
+ ], DynamicCollider.prototype, "_maxDepenetrationVelocity", void 0);
19500
+ __decorate$1([
19501
+ ignoreClone
19502
+ ], DynamicCollider.prototype, "_solverIterations", void 0);
19503
+ __decorate$1([
19504
+ ignoreClone
19505
+ ], DynamicCollider.prototype, "_isKinematic", void 0);
19506
+ __decorate$1([
19507
+ ignoreClone
19508
+ ], DynamicCollider.prototype, "_constraints", void 0);
19509
+ __decorate$1([
19510
+ ignoreClone
19511
+ ], DynamicCollider.prototype, "_collisionDetectionMode", void 0);
19512
+ __decorate$1([
19513
+ ignoreClone
19514
+ ], DynamicCollider.prototype, "_sleepThreshold", void 0);
19387
19515
  exports.CollisionDetectionMode = void 0;
19388
19516
  (function(CollisionDetectionMode) {
19389
19517
  CollisionDetectionMode[CollisionDetectionMode["Discrete"] = 0] = "Discrete";
@@ -19433,7 +19561,8 @@
19433
19561
  /**
19434
19562
  * @internal
19435
19563
  */ _proto._destroy = function _destroy() {
19436
- this._nativeMaterial.destroy();
19564
+ !this._destroyed && this._nativeMaterial.destroy();
19565
+ this._destroyed = true;
19437
19566
  };
19438
19567
  _create_class$3(PhysicsMaterial, [
19439
19568
  {
@@ -19543,25 +19672,38 @@
19543
19672
  var Joint = function Joint(entity) {
19544
19673
  var _this;
19545
19674
  _this = Component1.call(this, entity) || this;
19546
- _this._connectedCollider = new JointCollider();
19547
- _this._collider = new JointCollider();
19675
+ _this._colliderInfo = new JointColliderInfo();
19676
+ _this._connectedColliderInfo = new JointColliderInfo();
19548
19677
  _this._force = 0;
19549
19678
  _this._torque = 0;
19550
- _this._connectedCollider.localPosition = new Vector3();
19679
+ _this._connectedColliderInfo.localPosition = new Vector3();
19551
19680
  return _this;
19552
19681
  };
19553
19682
  _inherits$2(Joint, Component1);
19683
+ var _proto = Joint.prototype;
19684
+ /**
19685
+ * @internal
19686
+ */ _proto._cloneTo = function _cloneTo(target) {
19687
+ target.connectedCollider = this.connectedCollider;
19688
+ target.connectedAnchor = this.connectedAnchor;
19689
+ target.connectedMassScale = this.connectedMassScale;
19690
+ target.connectedInertiaScale = this.connectedInertiaScale;
19691
+ target.massScale = this.massScale;
19692
+ target.inertiaScale = this.inertiaScale;
19693
+ target.breakForce = this.breakForce;
19694
+ target.breakTorque = this.breakTorque;
19695
+ };
19554
19696
  _create_class$3(Joint, [
19555
19697
  {
19556
19698
  key: "connectedCollider",
19557
19699
  get: /**
19558
19700
  * The connected collider.
19559
19701
  */ function get() {
19560
- return this._connectedCollider.collider;
19702
+ return this._connectedColliderInfo.collider;
19561
19703
  },
19562
19704
  set: function set(value) {
19563
- if (this._connectedCollider.collider !== value) {
19564
- this._connectedCollider.collider = value;
19705
+ if (this._connectedColliderInfo.collider !== value) {
19706
+ this._connectedColliderInfo.collider = value;
19565
19707
  this._nativeJoint.setConnectedCollider(value._nativeCollider);
19566
19708
  }
19567
19709
  }
@@ -19572,10 +19714,10 @@
19572
19714
  * The connected anchor position.
19573
19715
  * @remarks If connectedCollider is set, this anchor is relative offset, or the anchor is world position.
19574
19716
  */ function get() {
19575
- return this._connectedCollider.localPosition;
19717
+ return this._connectedColliderInfo.localPosition;
19576
19718
  },
19577
19719
  set: function set(value) {
19578
- var connectedAnchor = this._connectedCollider.localPosition;
19720
+ var connectedAnchor = this._connectedColliderInfo.localPosition;
19579
19721
  if (value !== connectedAnchor) {
19580
19722
  connectedAnchor.copyFrom(value);
19581
19723
  }
@@ -19587,11 +19729,11 @@
19587
19729
  get: /**
19588
19730
  * The scale to apply to the inverse mass of collider 0 for resolving this constraint.
19589
19731
  */ function get() {
19590
- return this._connectedCollider.massScale;
19732
+ return this._connectedColliderInfo.massScale;
19591
19733
  },
19592
19734
  set: function set(value) {
19593
- if (value !== this._connectedCollider.massScale) {
19594
- this._connectedCollider.massScale = value;
19735
+ if (value !== this._connectedColliderInfo.massScale) {
19736
+ this._connectedColliderInfo.massScale = value;
19595
19737
  this._nativeJoint.setConnectedMassScale(value);
19596
19738
  }
19597
19739
  }
@@ -19601,11 +19743,11 @@
19601
19743
  get: /**
19602
19744
  * The scale to apply to the inverse inertia of collider0 for resolving this constraint.
19603
19745
  */ function get() {
19604
- return this._connectedCollider.inertiaScale;
19746
+ return this._connectedColliderInfo.inertiaScale;
19605
19747
  },
19606
19748
  set: function set(value) {
19607
- if (value !== this._connectedCollider.inertiaScale) {
19608
- this._connectedCollider.inertiaScale = value;
19749
+ if (value !== this._connectedColliderInfo.inertiaScale) {
19750
+ this._connectedColliderInfo.inertiaScale = value;
19609
19751
  this._nativeJoint.setConnectedInertiaScale(value);
19610
19752
  }
19611
19753
  }
@@ -19615,11 +19757,11 @@
19615
19757
  get: /**
19616
19758
  * The scale to apply to the inverse mass of collider 1 for resolving this constraint.
19617
19759
  */ function get() {
19618
- return this._collider.massScale;
19760
+ return this._colliderInfo.massScale;
19619
19761
  },
19620
19762
  set: function set(value) {
19621
- if (value !== this._collider.massScale) {
19622
- this._collider.massScale = value;
19763
+ if (value !== this._colliderInfo.massScale) {
19764
+ this._colliderInfo.massScale = value;
19623
19765
  this._nativeJoint.setMassScale(value);
19624
19766
  }
19625
19767
  }
@@ -19629,11 +19771,11 @@
19629
19771
  get: /**
19630
19772
  * The scale to apply to the inverse inertia of collider1 for resolving this constraint.
19631
19773
  */ function get() {
19632
- return this._collider.inertiaScale;
19774
+ return this._colliderInfo.inertiaScale;
19633
19775
  },
19634
19776
  set: function set(value) {
19635
- if (value !== this._collider.inertiaScale) {
19636
- this._collider.inertiaScale = value;
19777
+ if (value !== this._colliderInfo.inertiaScale) {
19778
+ this._colliderInfo.inertiaScale = value;
19637
19779
  this._nativeJoint.setInertiaScale(value);
19638
19780
  }
19639
19781
  }
@@ -19669,12 +19811,27 @@
19669
19811
  ]);
19670
19812
  return Joint;
19671
19813
  }(Component);
19814
+ __decorate$1([
19815
+ ignoreClone
19816
+ ], exports.Joint.prototype, "_colliderInfo", void 0);
19817
+ __decorate$1([
19818
+ ignoreClone
19819
+ ], exports.Joint.prototype, "_connectedColliderInfo", void 0);
19820
+ __decorate$1([
19821
+ ignoreClone
19822
+ ], exports.Joint.prototype, "_nativeJoint", void 0);
19823
+ __decorate$1([
19824
+ ignoreClone
19825
+ ], exports.Joint.prototype, "_force", void 0);
19826
+ __decorate$1([
19827
+ ignoreClone
19828
+ ], exports.Joint.prototype, "_torque", void 0);
19672
19829
  exports.Joint = __decorate$1([
19673
19830
  dependentComponents(exports.Collider, exports.DependentMode.CheckOnly)
19674
19831
  ], exports.Joint);
19675
19832
  /**
19676
19833
  * @internal
19677
- */ var JointCollider = function JointCollider() {
19834
+ */ var JointColliderInfo = function JointColliderInfo() {
19678
19835
  this.collider = null;
19679
19836
  this.massScale = 0;
19680
19837
  this.inertiaScale = 0;
@@ -19690,7 +19847,7 @@
19690
19847
  /**
19691
19848
  * @internal
19692
19849
  */ _proto._onAwake = function _onAwake() {
19693
- var collider = this._collider;
19850
+ var collider = this._colliderInfo;
19694
19851
  collider.collider = this.entity.getComponent(exports.Collider);
19695
19852
  this._nativeJoint = PhysicsScene._nativePhysics.createFixedJoint(collider.collider._nativeCollider);
19696
19853
  };
@@ -19722,11 +19879,22 @@
19722
19879
  /**
19723
19880
  * @internal
19724
19881
  */ _proto._onAwake = function _onAwake() {
19725
- var collider = this._collider;
19882
+ var collider = this._colliderInfo;
19726
19883
  collider.localPosition = new Vector3();
19727
19884
  collider.collider = this.entity.getComponent(exports.Collider);
19728
19885
  this._nativeJoint = PhysicsScene._nativePhysics.createHingeJoint(collider.collider._nativeCollider);
19729
19886
  };
19887
+ /**
19888
+ * @internal
19889
+ */ _proto._cloneTo = function _cloneTo(target) {
19890
+ target.axis = this.axis;
19891
+ target.swingOffset = this.swingOffset;
19892
+ target.useLimits = this.useLimits;
19893
+ target.useMotor = this.useMotor;
19894
+ target.useSpring = this.useSpring;
19895
+ target.motor = this.motor;
19896
+ target.limits = this.limits;
19897
+ };
19730
19898
  _create_class$3(HingeJoint, [
19731
19899
  {
19732
19900
  key: "axis",
@@ -19748,10 +19916,10 @@
19748
19916
  get: /**
19749
19917
  * The swing offset.
19750
19918
  */ function get() {
19751
- return this._collider.localPosition;
19919
+ return this._colliderInfo.localPosition;
19752
19920
  },
19753
19921
  set: function set(value) {
19754
- var swingOffset = this._collider.localPosition;
19922
+ var swingOffset = this._colliderInfo.localPosition;
19755
19923
  if (value !== swingOffset) {
19756
19924
  swingOffset.copyFrom(value);
19757
19925
  }
@@ -19854,6 +20022,21 @@
19854
20022
  ]);
19855
20023
  return HingeJoint;
19856
20024
  }(exports.Joint);
20025
+ __decorate$1([
20026
+ ignoreClone
20027
+ ], HingeJoint.prototype, "_axis", void 0);
20028
+ __decorate$1([
20029
+ ignoreClone
20030
+ ], HingeJoint.prototype, "_hingeFlags", void 0);
20031
+ __decorate$1([
20032
+ ignoreClone
20033
+ ], HingeJoint.prototype, "_useSpring", void 0);
20034
+ __decorate$1([
20035
+ ignoreClone
20036
+ ], HingeJoint.prototype, "_jointMonitor", void 0);
20037
+ __decorate$1([
20038
+ ignoreClone
20039
+ ], HingeJoint.prototype, "_limits", void 0);
19857
20040
  /**
19858
20041
  * A joint that maintains an upper or lower bound (or both) on the distance between two points on different objects.
19859
20042
  */ var SpringJoint = /*#__PURE__*/ function(Joint1) {
@@ -19872,21 +20055,31 @@
19872
20055
  /**
19873
20056
  * @internal
19874
20057
  */ _proto._onAwake = function _onAwake() {
19875
- var collider = this._collider;
20058
+ var collider = this._colliderInfo;
19876
20059
  collider.localPosition = new Vector3();
19877
20060
  collider.collider = this.entity.getComponent(exports.Collider);
19878
20061
  this._nativeJoint = PhysicsScene._nativePhysics.createSpringJoint(collider.collider._nativeCollider);
19879
20062
  };
20063
+ /**
20064
+ * @internal
20065
+ */ _proto._cloneTo = function _cloneTo(target) {
20066
+ target.swingOffset = this.swingOffset;
20067
+ target.minDistance = this.minDistance;
20068
+ target.maxDistance = this.maxDistance;
20069
+ target.tolerance = this.tolerance;
20070
+ target.stiffness = this.stiffness;
20071
+ target.damping = this.damping;
20072
+ };
19880
20073
  _create_class$3(SpringJoint, [
19881
20074
  {
19882
20075
  key: "swingOffset",
19883
20076
  get: /**
19884
20077
  * The swing offset.
19885
20078
  */ function get() {
19886
- return this._collider.localPosition;
20079
+ return this._colliderInfo.localPosition;
19887
20080
  },
19888
20081
  set: function set(value) {
19889
- var swingOffset = this._collider.localPosition;
20082
+ var swingOffset = this._colliderInfo.localPosition;
19890
20083
  if (value !== swingOffset) {
19891
20084
  swingOffset.copyFrom(value);
19892
20085
  }
@@ -20008,6 +20201,15 @@
20008
20201
  var _proto = ColliderShape.prototype;
20009
20202
  /**
20010
20203
  * @internal
20204
+ */ _proto._cloneTo = function _cloneTo(target) {
20205
+ target.contactOffset = this.contactOffset;
20206
+ target.rotation = this.rotation;
20207
+ target.position = this.position;
20208
+ target.isTrigger = this.isTrigger;
20209
+ target.material = this.material;
20210
+ };
20211
+ /**
20212
+ * @internal
20011
20213
  */ _proto._destroy = function _destroy() {
20012
20214
  this._material._destroy();
20013
20215
  this._nativeShape.destroy();
@@ -20109,6 +20311,30 @@
20109
20311
  (function() {
20110
20312
  ColliderShape._idGenerator = 0;
20111
20313
  })();
20314
+ __decorate$1([
20315
+ ignoreClone
20316
+ ], ColliderShape.prototype, "_collider", void 0);
20317
+ __decorate$1([
20318
+ ignoreClone
20319
+ ], ColliderShape.prototype, "_nativeShape", void 0);
20320
+ __decorate$1([
20321
+ ignoreClone
20322
+ ], ColliderShape.prototype, "_id", void 0);
20323
+ __decorate$1([
20324
+ ignoreClone
20325
+ ], ColliderShape.prototype, "_material", void 0);
20326
+ __decorate$1([
20327
+ ignoreClone
20328
+ ], ColliderShape.prototype, "_isTrigger", void 0);
20329
+ __decorate$1([
20330
+ ignoreClone
20331
+ ], ColliderShape.prototype, "_rotation", void 0);
20332
+ __decorate$1([
20333
+ ignoreClone
20334
+ ], ColliderShape.prototype, "_position", void 0);
20335
+ __decorate$1([
20336
+ ignoreClone
20337
+ ], ColliderShape.prototype, "_contactOffset", void 0);
20112
20338
  /**
20113
20339
  * Physical collider shape for box.
20114
20340
  */ var BoxColliderShape = /*#__PURE__*/ function(ColliderShape1) {
@@ -20124,6 +20350,12 @@
20124
20350
  };
20125
20351
  _inherits$2(BoxColliderShape, ColliderShape1);
20126
20352
  var _proto = BoxColliderShape.prototype;
20353
+ /**
20354
+ * @internal
20355
+ */ _proto._cloneTo = function _cloneTo(target) {
20356
+ ColliderShape1.prototype._cloneTo.call(this, target);
20357
+ target.size = this.size;
20358
+ };
20127
20359
  _proto._setSize = function _setSize() {
20128
20360
  this._nativeShape.setSize(this._size);
20129
20361
  };
@@ -20144,6 +20376,9 @@
20144
20376
  ]);
20145
20377
  return BoxColliderShape;
20146
20378
  }(ColliderShape);
20379
+ __decorate$1([
20380
+ ignoreClone
20381
+ ], BoxColliderShape.prototype, "_size", void 0);
20147
20382
  /**
20148
20383
  * Physical collider shape for sphere.
20149
20384
  */ var SphereColliderShape = /*#__PURE__*/ function(ColliderShape1) {
@@ -20155,6 +20390,11 @@
20155
20390
  return _this;
20156
20391
  };
20157
20392
  _inherits$2(SphereColliderShape, ColliderShape1);
20393
+ var _proto = SphereColliderShape.prototype;
20394
+ _proto._cloneTo = function _cloneTo(target) {
20395
+ ColliderShape1.prototype._cloneTo.call(this, target);
20396
+ target.radius = this.radius;
20397
+ };
20158
20398
  _create_class$3(SphereColliderShape, [
20159
20399
  {
20160
20400
  key: "radius",
@@ -20173,6 +20413,9 @@
20173
20413
  ]);
20174
20414
  return SphereColliderShape;
20175
20415
  }(ColliderShape);
20416
+ __decorate$1([
20417
+ ignoreClone
20418
+ ], SphereColliderShape.prototype, "_radius", void 0);
20176
20419
  /**
20177
20420
  * Physical collider shape plane.
20178
20421
  */ var PlaneColliderShape = /*#__PURE__*/ function(ColliderShape1) {
@@ -20198,6 +20441,15 @@
20198
20441
  return _this;
20199
20442
  };
20200
20443
  _inherits$2(CapsuleColliderShape, ColliderShape1);
20444
+ var _proto = CapsuleColliderShape.prototype;
20445
+ /**
20446
+ * @internal
20447
+ */ _proto._cloneTo = function _cloneTo(target) {
20448
+ ColliderShape1.prototype._cloneTo.call(this, target);
20449
+ target.radius = this.radius;
20450
+ target.height = this.height;
20451
+ target.upAxis = this.upAxis;
20452
+ };
20201
20453
  _create_class$3(CapsuleColliderShape, [
20202
20454
  {
20203
20455
  key: "radius",
@@ -20244,6 +20496,15 @@
20244
20496
  ]);
20245
20497
  return CapsuleColliderShape;
20246
20498
  }(ColliderShape);
20499
+ __decorate$1([
20500
+ ignoreClone
20501
+ ], CapsuleColliderShape.prototype, "_radius", void 0);
20502
+ __decorate$1([
20503
+ ignoreClone
20504
+ ], CapsuleColliderShape.prototype, "_height", void 0);
20505
+ __decorate$1([
20506
+ ignoreClone
20507
+ ], CapsuleColliderShape.prototype, "_upAxis", void 0);
20247
20508
  /**
20248
20509
  * Pointer Manager.
20249
20510
  * @internal
@@ -21771,13 +22032,12 @@
21771
22032
  /**
21772
22033
  * @internal
21773
22034
  */ _proto._resizeBackgroundTexture = function _resizeBackgroundTexture() {
22035
+ var _this = this, texture = _this._texture, mesh = _this._mesh;
21774
22036
  if (!this._texture) {
21775
22037
  return;
21776
22038
  }
21777
- var canvas = this._engine.canvas;
21778
- var width = canvas.width, height = canvas.height;
21779
- var _this = this, _backgroundTextureMesh = _this._mesh;
21780
- var positions = _backgroundTextureMesh.getPositions();
22039
+ var _this__engine_canvas = this._engine.canvas, width = _this__engine_canvas.width, height = _this__engine_canvas.height;
22040
+ var positions = mesh.getPositions();
21781
22041
  switch(this._textureFillMode){
21782
22042
  case exports.BackgroundTextureFillMode.Fill:
21783
22043
  positions[0].set(-1, -1, 1);
@@ -21786,22 +22046,22 @@
21786
22046
  positions[3].set(1, 1, 1);
21787
22047
  break;
21788
22048
  case exports.BackgroundTextureFillMode.AspectFitWidth:
21789
- var fitWidthScale = this._texture.height * width / this.texture.width / height;
22049
+ var fitWidthScale = texture.height * width / texture.width / height;
21790
22050
  positions[0].set(-1, -fitWidthScale, 1);
21791
22051
  positions[1].set(1, -fitWidthScale, 1);
21792
22052
  positions[2].set(-1, fitWidthScale, 1);
21793
22053
  positions[3].set(1, fitWidthScale, 1);
21794
22054
  break;
21795
22055
  case exports.BackgroundTextureFillMode.AspectFitHeight:
21796
- var fitHeightScale = this._texture.width * height / this.texture.height / width;
22056
+ var fitHeightScale = texture.width * height / texture.height / width;
21797
22057
  positions[0].set(-fitHeightScale, -1, 1);
21798
22058
  positions[1].set(fitHeightScale, -1, 1);
21799
22059
  positions[2].set(-fitHeightScale, 1, 1);
21800
22060
  positions[3].set(fitHeightScale, 1, 1);
21801
22061
  break;
21802
22062
  }
21803
- _backgroundTextureMesh.setPositions(positions);
21804
- _backgroundTextureMesh.uploadData(false);
22063
+ mesh.setPositions(positions);
22064
+ mesh.uploadData(false);
21805
22065
  };
21806
22066
  _proto._initMesh = function _initMesh(engine) {
21807
22067
  this._mesh = this._createPlane(engine);
@@ -21852,13 +22112,13 @@
21852
22112
  (_this__texture = this._texture) == null ? void 0 : _this__texture._addReferCount(-1);
21853
22113
  this._texture = value;
21854
22114
  this._material.shaderData.setTexture("material_BaseTexture", value);
22115
+ this._resizeBackgroundTexture();
21855
22116
  }
21856
22117
  }
21857
22118
  },
21858
22119
  {
21859
22120
  key: "textureFillMode",
21860
22121
  get: /**
21861
- * @internal
21862
22122
  * Background texture fill mode.
21863
22123
  * @remarks When `mode` is `BackgroundMode.Texture`, the property will take effects.
21864
22124
  * @defaultValue `BackgroundTextureFillMode.FitHeight`
@@ -21975,33 +22235,37 @@
21975
22235
  };
21976
22236
  _proto.callScriptOnUpdate = function callScriptOnUpdate(deltaTime) {
21977
22237
  this._onUpdateScripts.forEach(function(element) {
21978
- if (element._started) {
21979
- element.onUpdate(deltaTime);
21980
- }
22238
+ element._started && element.onUpdate(deltaTime);
22239
+ }, function(element, index) {
22240
+ element._onUpdateIndex = index;
21981
22241
  });
21982
22242
  };
21983
22243
  _proto.callScriptOnLateUpdate = function callScriptOnLateUpdate(deltaTime) {
21984
22244
  this._onLateUpdateScripts.forEach(function(element) {
21985
- if (element._started) {
21986
- element.onLateUpdate(deltaTime);
21987
- }
22245
+ element._started && element.onLateUpdate(deltaTime);
22246
+ }, function(element, index) {
22247
+ element._onLateUpdateIndex = index;
21988
22248
  });
21989
22249
  };
21990
22250
  _proto.callScriptOnPhysicsUpdate = function callScriptOnPhysicsUpdate() {
21991
22251
  this._onPhysicsUpdateScripts.forEach(function(element) {
21992
- if (element._started) {
21993
- element.onPhysicsUpdate();
21994
- }
22252
+ element._started && element.onPhysicsUpdate();
22253
+ }, function(element, index) {
22254
+ element._onPhysicsUpdateIndex = index;
21995
22255
  });
21996
22256
  };
21997
22257
  _proto.callAnimationUpdate = function callAnimationUpdate(deltaTime) {
21998
22258
  this._onUpdateAnimations.forEach(function(element) {
21999
22259
  element.engine.time.frameCount > element._playFrameCount && element.update(deltaTime);
22260
+ }, function(element, index) {
22261
+ element._onUpdateIndex = index;
22000
22262
  });
22001
22263
  };
22002
22264
  _proto.callRendererOnUpdate = function callRendererOnUpdate(deltaTime) {
22003
22265
  this._onUpdateRenderers.forEach(function(element) {
22004
22266
  element.update(deltaTime);
22267
+ }, function(element, index) {
22268
+ element._onUpdateIndex = index;
22005
22269
  });
22006
22270
  };
22007
22271
  _proto.handlingInvalidScripts = function handlingInvalidScripts() {
@@ -22019,11 +22283,15 @@
22019
22283
  _proto.callCameraOnBeginRender = function callCameraOnBeginRender(camera) {
22020
22284
  camera.entity._scripts.forEach(function(element) {
22021
22285
  element.onBeginRender(camera);
22286
+ }, function(element, index) {
22287
+ element._entityScriptsIndex = index;
22022
22288
  });
22023
22289
  };
22024
22290
  _proto.callCameraOnEndRender = function callCameraOnEndRender(camera) {
22025
22291
  camera.entity._scripts.forEach(function(element) {
22026
22292
  element.onEndRender(camera);
22293
+ }, function(element, index) {
22294
+ element._entityScriptsIndex = index;
22027
22295
  });
22028
22296
  };
22029
22297
  _proto.getActiveChangedTempList = function getActiveChangedTempList() {
@@ -28830,6 +29098,9 @@
28830
29098
  this.property = property;
28831
29099
  this.component = target.getComponent(type);
28832
29100
  this.cureType = cureType;
29101
+ var isBlendShape = _instanceof1$2(this.component, SkinnedMeshRenderer);
29102
+ // @todo: Temp solution with blendShape
29103
+ this._isCopyMode = cureType._isCopyMode && !isBlendShape;
28833
29104
  var assemblerType = AnimationCurveOwner.getAssemblerType(type, property);
28834
29105
  this._assembler = new assemblerType();
28835
29106
  this._assembler.initialize(this);
@@ -28861,7 +29132,7 @@
28861
29132
  this._assembler.setTargetValue(this.defaultValue);
28862
29133
  };
28863
29134
  _proto.getEvaluateValue = function getEvaluateValue(out) {
28864
- if (this.cureType._isCopyMode) {
29135
+ if (this._isCopyMode) {
28865
29136
  this.cureType._setValue(this.baseEvaluateData.value, out);
28866
29137
  return out;
28867
29138
  } else {
@@ -28869,14 +29140,14 @@
28869
29140
  }
28870
29141
  };
28871
29142
  _proto.saveDefaultValue = function saveDefaultValue() {
28872
- if (this.cureType._isCopyMode) {
29143
+ if (this._isCopyMode) {
28873
29144
  this.cureType._setValue(this.referenceTargetValue, this.defaultValue);
28874
29145
  } else {
28875
29146
  this.defaultValue = this._assembler.getTargetValue();
28876
29147
  }
28877
29148
  };
28878
29149
  _proto.saveFixedPoseValue = function saveFixedPoseValue() {
28879
- if (this.cureType._isCopyMode) {
29150
+ if (this._isCopyMode) {
28880
29151
  this.cureType._setValue(this.referenceTargetValue, this.fixedPoseValue);
28881
29152
  } else {
28882
29153
  this.fixedPoseValue = this._assembler.getTargetValue();
@@ -28885,7 +29156,7 @@
28885
29156
  _proto.applyValue = function applyValue(value, weight, additive) {
28886
29157
  var cureType = this.cureType;
28887
29158
  if (additive) {
28888
- if (cureType._isCopyMode) {
29159
+ if (this._isCopyMode) {
28889
29160
  cureType._additiveValue(value, weight, this.referenceTargetValue);
28890
29161
  } else {
28891
29162
  var assembler = this._assembler;
@@ -28895,13 +29166,13 @@
28895
29166
  }
28896
29167
  } else {
28897
29168
  if (weight === 1.0) {
28898
- if (cureType._isCopyMode) {
29169
+ if (this._isCopyMode) {
28899
29170
  cureType._setValue(value, this.referenceTargetValue);
28900
29171
  } else {
28901
29172
  this._assembler.setTargetValue(value);
28902
29173
  }
28903
29174
  } else {
28904
- if (cureType._isCopyMode) {
29175
+ if (this._isCopyMode) {
28905
29176
  var targetValue = this.referenceTargetValue;
28906
29177
  cureType._lerpValue(targetValue, value, weight, targetValue);
28907
29178
  } else {
@@ -28913,7 +29184,7 @@
28913
29184
  }
28914
29185
  };
28915
29186
  _proto._lerpValue = function _lerpValue(srcValue, destValue, crossWeight) {
28916
- if (this.cureType._isCopyMode) {
29187
+ if (this._isCopyMode) {
28917
29188
  return this.cureType._lerpValue(srcValue, destValue, crossWeight, this.baseEvaluateData.value);
28918
29189
  } else {
28919
29190
  this.baseEvaluateData.value = this.cureType._lerpValue(srcValue, destValue, crossWeight);
@@ -34523,6 +34794,7 @@
34523
34794
  ColliderShape: ColliderShape,
34524
34795
  get ColliderShapeUpAxis () { return exports.ColliderShapeUpAxis; },
34525
34796
  get CollisionDetectionMode () { return exports.CollisionDetectionMode; },
34797
+ ColorOverLifetimeModule: ColorOverLifetimeModule,
34526
34798
  get ColorSpace () { return exports.ColorSpace; },
34527
34799
  get ColorWriteMask () { return exports.ColorWriteMask; },
34528
34800
  get CompareFunction () { return exports.CompareFunction; },
@@ -34543,6 +34815,7 @@
34543
34815
  DirectLight: DirectLight,
34544
34816
  DynamicCollider: DynamicCollider,
34545
34817
  get DynamicColliderConstraints () { return exports.DynamicColliderConstraints; },
34818
+ EmissionModule: EmissionModule,
34546
34819
  Engine: Engine,
34547
34820
  EngineObject: EngineObject,
34548
34821
  Entity: Entity,
@@ -34552,6 +34825,8 @@
34552
34825
  Font: Font,
34553
34826
  get FontStyle () { return exports.FontStyle; },
34554
34827
  get GLCapabilityType () { return exports.GLCapabilityType; },
34828
+ GradientAlphaKey: GradientAlphaKey,
34829
+ GradientColorKey: GradientColorKey,
34555
34830
  HemisphereShape: HemisphereShape,
34556
34831
  HingeJoint: HingeJoint,
34557
34832
  HitResult: HitResult,
@@ -34568,6 +34843,7 @@
34568
34843
  Light: Light,
34569
34844
  Loader: Loader,
34570
34845
  Logger: Logger,
34846
+ MainModule: MainModule,
34571
34847
  Material: Material,
34572
34848
  Mesh: Mesh,
34573
34849
  MeshRenderer: MeshRenderer,
@@ -34578,9 +34854,11 @@
34578
34854
  PBRMaterial: PBRMaterial,
34579
34855
  PBRSpecularMaterial: PBRSpecularMaterial,
34580
34856
  ParticleCompositeCurve: ParticleCompositeCurve,
34857
+ ParticleCompositeGradient: ParticleCompositeGradient,
34581
34858
  ParticleCurve: ParticleCurve,
34582
34859
  get ParticleCurveMode () { return exports.ParticleCurveMode; },
34583
34860
  ParticleGenerator: ParticleGenerator,
34861
+ ParticleGradient: ParticleGradient,
34584
34862
  get ParticleGradientMode () { return exports.ParticleGradientMode; },
34585
34863
  ParticleMaterial: ParticleMaterial,
34586
34864
  get ParticleRenderMode () { return exports.ParticleRenderMode; },
@@ -34615,6 +34893,7 @@
34615
34893
  RenderTargetBlendState: RenderTargetBlendState,
34616
34894
  get Renderer () { return exports.Renderer; },
34617
34895
  ResourceManager: ResourceManager,
34896
+ RotationOverLifetimeModule: RotationOverLifetimeModule,
34618
34897
  Scene: Scene,
34619
34898
  SceneManager: SceneManager,
34620
34899
  Script: Script,
@@ -34631,6 +34910,7 @@
34631
34910
  get ShadowCascadesMode () { return exports.ShadowCascadesMode; },
34632
34911
  get ShadowResolution () { return exports.ShadowResolution; },
34633
34912
  get ShadowType () { return exports.ShadowType; },
34913
+ SizeOverLifetimeModule: SizeOverLifetimeModule,
34634
34914
  Skin: Skin,
34635
34915
  SkinnedMeshRenderer: SkinnedMeshRenderer,
34636
34916
  Sky: Sky,
@@ -34669,6 +34949,7 @@
34669
34949
  get TextureDepthCompareFunction () { return exports.TextureDepthCompareFunction; },
34670
34950
  get TextureFilterMode () { return exports.TextureFilterMode; },
34671
34951
  get TextureFormat () { return exports.TextureFormat; },
34952
+ TextureSheetAnimationModule: TextureSheetAnimationModule,
34672
34953
  get TextureUsage () { return exports.TextureUsage; },
34673
34954
  get TextureWrapMode () { return exports.TextureWrapMode; },
34674
34955
  Time: Time,
@@ -34677,6 +34958,7 @@
34677
34958
  Transform: Transform,
34678
34959
  UnlitMaterial: UnlitMaterial,
34679
34960
  Utils: Utils,
34961
+ VelocityOverLifetimeModule: VelocityOverLifetimeModule,
34680
34962
  get VertexAttribute () { return exports.VertexAttribute; },
34681
34963
  VertexBufferBinding: VertexBufferBinding,
34682
34964
  VertexElement: VertexElement,
@@ -42399,7 +42681,7 @@
42399
42681
  ProjectLoader = __decorate([
42400
42682
  resourceLoader(exports.AssetType.Project, [
42401
42683
  "proj"
42402
- ], true)
42684
+ ], false)
42403
42685
  ], ProjectLoader);
42404
42686
  var SceneLoader = /*#__PURE__*/ function(Loader1) {
42405
42687
  var SceneLoader = function SceneLoader() {
@@ -42997,7 +43279,7 @@
42997
43279
  ], GALACEAN_animation_event);
42998
43280
 
42999
43281
  //@ts-ignore
43000
- var version = "1.1.0-beta.6";
43282
+ var version = "1.1.0-beta.8";
43001
43283
  console.log("Galacean engine version: " + version);
43002
43284
  for(var key in CoreObjects){
43003
43285
  Loader.registerClass(key, CoreObjects[key]);
@@ -43040,6 +43322,7 @@
43040
43322
  exports.ColliderShape = ColliderShape;
43041
43323
  exports.CollisionUtil = CollisionUtil;
43042
43324
  exports.Color = Color$1;
43325
+ exports.ColorOverLifetimeModule = ColorOverLifetimeModule;
43043
43326
  exports.Component = Component;
43044
43327
  exports.ComponentMap = ComponentMap;
43045
43328
  exports.ConeShape = ConeShape;
@@ -43049,6 +43332,7 @@
43049
43332
  exports.DepthState = DepthState;
43050
43333
  exports.DirectLight = DirectLight;
43051
43334
  exports.DynamicCollider = DynamicCollider;
43335
+ exports.EmissionModule = EmissionModule;
43052
43336
  exports.Engine = Engine;
43053
43337
  exports.EngineObject = EngineObject;
43054
43338
  exports.Entity = Entity;
@@ -43060,6 +43344,8 @@
43060
43344
  exports.GLTFParserContext = GLTFParserContext;
43061
43345
  exports.GLTFResource = GLTFResource;
43062
43346
  exports.GLTFUtils = GLTFUtils;
43347
+ exports.GradientAlphaKey = GradientAlphaKey;
43348
+ exports.GradientColorKey = GradientColorKey;
43063
43349
  exports.HemisphereShape = HemisphereShape;
43064
43350
  exports.HingeJoint = HingeJoint;
43065
43351
  exports.HitResult = HitResult;
@@ -43071,6 +43357,7 @@
43071
43357
  exports.Light = Light;
43072
43358
  exports.Loader = Loader;
43073
43359
  exports.Logger = Logger;
43360
+ exports.MainModule = MainModule;
43074
43361
  exports.Material = Material;
43075
43362
  exports.MathUtil = MathUtil$1;
43076
43363
  exports.Matrix = Matrix;
@@ -43082,8 +43369,10 @@
43082
43369
  exports.PBRMaterial = PBRMaterial;
43083
43370
  exports.PBRSpecularMaterial = PBRSpecularMaterial;
43084
43371
  exports.ParticleCompositeCurve = ParticleCompositeCurve;
43372
+ exports.ParticleCompositeGradient = ParticleCompositeGradient;
43085
43373
  exports.ParticleCurve = ParticleCurve;
43086
43374
  exports.ParticleGenerator = ParticleGenerator;
43375
+ exports.ParticleGradient = ParticleGradient;
43087
43376
  exports.ParticleMaterial = ParticleMaterial;
43088
43377
  exports.ParticleRenderer = ParticleRenderer;
43089
43378
  exports.PhysicsMaterial = PhysicsMaterial;
@@ -43109,6 +43398,7 @@
43109
43398
  exports.RenderTarget = RenderTarget;
43110
43399
  exports.RenderTargetBlendState = RenderTargetBlendState;
43111
43400
  exports.ResourceManager = ResourceManager;
43401
+ exports.RotationOverLifetimeModule = RotationOverLifetimeModule;
43112
43402
  exports.Scene = Scene;
43113
43403
  exports.SceneManager = SceneManager;
43114
43404
  exports.SceneParser = SceneParser;
@@ -43121,6 +43411,7 @@
43121
43411
  exports.ShaderPass = ShaderPass;
43122
43412
  exports.ShaderProperty = ShaderProperty;
43123
43413
  exports.ShaderTagKey = ShaderTagKey;
43414
+ exports.SizeOverLifetimeModule = SizeOverLifetimeModule;
43124
43415
  exports.Skin = Skin;
43125
43416
  exports.SkinnedMeshRenderer = SkinnedMeshRenderer;
43126
43417
  exports.Sky = Sky;
@@ -43147,6 +43438,7 @@
43147
43438
  exports.Texture2D = Texture2D;
43148
43439
  exports.Texture2DArray = Texture2DArray;
43149
43440
  exports.TextureCube = TextureCube;
43441
+ exports.TextureSheetAnimationModule = TextureSheetAnimationModule;
43150
43442
  exports.Time = Time;
43151
43443
  exports.TrailMaterial = TrailMaterial;
43152
43444
  exports.TrailRenderer = TrailRenderer;
@@ -43156,6 +43448,7 @@
43156
43448
  exports.Vector2 = Vector2;
43157
43449
  exports.Vector3 = Vector3;
43158
43450
  exports.Vector4 = Vector4;
43451
+ exports.VelocityOverLifetimeModule = VelocityOverLifetimeModule;
43159
43452
  exports.VertexBufferBinding = VertexBufferBinding;
43160
43453
  exports.VertexElement = VertexElement;
43161
43454
  exports.WebCanvas = WebCanvas;