@galacean/engine-core 1.1.0-beta.29 → 1.1.0-beta.30
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 +16 -8
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +16 -8
- package/dist/module.js +16 -8
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/RenderPipeline/MeshRenderData.d.ts +17 -0
- package/types/physics/PhysicsManager.d.ts +78 -0
package/dist/miniprogram.js
CHANGED
|
@@ -2633,20 +2633,28 @@ var ActiveChangeFlag;
|
|
|
2633
2633
|
this._enabled = value;
|
|
2634
2634
|
if (this._entity._isActiveInScene) {
|
|
2635
2635
|
if (value) {
|
|
2636
|
-
this._phasedActiveInScene
|
|
2637
|
-
|
|
2636
|
+
if (!this._phasedActiveInScene) {
|
|
2637
|
+
this._phasedActiveInScene = true;
|
|
2638
|
+
this._onEnableInScene();
|
|
2639
|
+
}
|
|
2638
2640
|
} else {
|
|
2639
|
-
this._phasedActiveInScene
|
|
2640
|
-
|
|
2641
|
+
if (this._phasedActiveInScene) {
|
|
2642
|
+
this._phasedActiveInScene = false;
|
|
2643
|
+
this._onDisableInScene();
|
|
2644
|
+
}
|
|
2641
2645
|
}
|
|
2642
2646
|
}
|
|
2643
2647
|
if (this._entity.isActiveInHierarchy) {
|
|
2644
2648
|
if (value) {
|
|
2645
|
-
this._phasedActive
|
|
2646
|
-
|
|
2649
|
+
if (!this._phasedActive) {
|
|
2650
|
+
this._phasedActive = true;
|
|
2651
|
+
this._onEnable();
|
|
2652
|
+
}
|
|
2647
2653
|
} else {
|
|
2648
|
-
this._phasedActive
|
|
2649
|
-
|
|
2654
|
+
if (this._phasedActive) {
|
|
2655
|
+
this._phasedActive = false;
|
|
2656
|
+
this._onDisable();
|
|
2657
|
+
}
|
|
2650
2658
|
}
|
|
2651
2659
|
}
|
|
2652
2660
|
}
|
package/dist/module.js
CHANGED
|
@@ -2628,20 +2628,28 @@ var ActiveChangeFlag;
|
|
|
2628
2628
|
this._enabled = value;
|
|
2629
2629
|
if (this._entity._isActiveInScene) {
|
|
2630
2630
|
if (value) {
|
|
2631
|
-
this._phasedActiveInScene
|
|
2632
|
-
|
|
2631
|
+
if (!this._phasedActiveInScene) {
|
|
2632
|
+
this._phasedActiveInScene = true;
|
|
2633
|
+
this._onEnableInScene();
|
|
2634
|
+
}
|
|
2633
2635
|
} else {
|
|
2634
|
-
this._phasedActiveInScene
|
|
2635
|
-
|
|
2636
|
+
if (this._phasedActiveInScene) {
|
|
2637
|
+
this._phasedActiveInScene = false;
|
|
2638
|
+
this._onDisableInScene();
|
|
2639
|
+
}
|
|
2636
2640
|
}
|
|
2637
2641
|
}
|
|
2638
2642
|
if (this._entity.isActiveInHierarchy) {
|
|
2639
2643
|
if (value) {
|
|
2640
|
-
this._phasedActive
|
|
2641
|
-
|
|
2644
|
+
if (!this._phasedActive) {
|
|
2645
|
+
this._phasedActive = true;
|
|
2646
|
+
this._onEnable();
|
|
2647
|
+
}
|
|
2642
2648
|
} else {
|
|
2643
|
-
this._phasedActive
|
|
2644
|
-
|
|
2649
|
+
if (this._phasedActive) {
|
|
2650
|
+
this._phasedActive = false;
|
|
2651
|
+
this._onDisable();
|
|
2652
|
+
}
|
|
2645
2653
|
}
|
|
2646
2654
|
}
|
|
2647
2655
|
}
|