@shimotsuki/core 3.0.44 → 3.0.46
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/shimotsuki_core.js +8 -3
- package/package.json +1 -1
package/dist/shimotsuki_core.js
CHANGED
|
@@ -502,6 +502,7 @@ class BaseComponent extends l {
|
|
|
502
502
|
if (u(this?.node)) {
|
|
503
503
|
this.node.removeFromParent();
|
|
504
504
|
this.node.destroy();
|
|
505
|
+
console.log(this.node.name, this.node.uuid, this.node);
|
|
505
506
|
}
|
|
506
507
|
}
|
|
507
508
|
setPosition(e) {
|
|
@@ -1381,13 +1382,17 @@ let Ot = class Gui extends BaseComponent {
|
|
|
1381
1382
|
n?.setOptions(t);
|
|
1382
1383
|
}
|
|
1383
1384
|
createUILayer(e) {
|
|
1385
|
+
if (this.ui_container_component && u(this.ui_container_component.node) && this.ui_container_component.node.scene === e) {
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
this.ui_container_component?.removeAndDestroy();
|
|
1384
1389
|
this.ui_container_component = null;
|
|
1385
|
-
const t = h(this.ui_prefab);
|
|
1386
|
-
console.log("node", u(t), t.uuid, t);
|
|
1387
|
-
console.log("isValid(this.node)", u(this.node), this.node.uuid, this.node);
|
|
1388
1390
|
if (u(this.node)) {
|
|
1391
|
+
const t = h(this.ui_prefab);
|
|
1389
1392
|
this.ui_container_component = t.getComponent(ze);
|
|
1390
1393
|
this.ui_container_component?.setGui(this).addToParent(e, this.node.getSiblingIndex());
|
|
1394
|
+
console.log("node", t.uuid, t);
|
|
1395
|
+
console.log("isValid(this.node)", u(this.node), this.node.uuid, this.node);
|
|
1391
1396
|
}
|
|
1392
1397
|
console.log("this.ui_container_component", this.ui_container_component);
|
|
1393
1398
|
}
|