@shimotsuki/core 3.0.43 → 3.0.45

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.
@@ -1381,14 +1381,17 @@ let Ot = class Gui extends BaseComponent {
1381
1381
  n?.setOptions(t);
1382
1382
  }
1383
1383
  createUILayer(e) {
1384
+ if (this.ui_container_component && u(this.ui_container_component.node) && this.ui_container_component.node.scene === e) {
1385
+ return;
1386
+ }
1384
1387
  this.ui_container_component?.removeAndDestroy();
1385
1388
  this.ui_container_component = null;
1386
- const t = h(this.ui_prefab);
1387
- console.log("node", u(t), t.uuid, t);
1388
- console.log("isValid(this.node)", u(this.node), this.node.uuid, this.node);
1389
1389
  if (u(this.node)) {
1390
+ const t = h(this.ui_prefab);
1390
1391
  this.ui_container_component = t.getComponent(ze);
1391
1392
  this.ui_container_component?.setGui(this).addToParent(e, this.node.getSiblingIndex());
1393
+ console.log("node", t.uuid, t);
1394
+ console.log("isValid(this.node)", u(this.node), this.node.uuid, this.node);
1392
1395
  }
1393
1396
  console.log("this.ui_container_component", this.ui_container_component);
1394
1397
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shimotsuki/core",
3
- "version": "3.0.43",
3
+ "version": "3.0.45",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "dist/shimotsuki_core.js",