From 4f3a0dc8c89abae2bc73bf48874c3c4b2f4f0757 Mon Sep 17 00:00:00 2001 From: xu_yanfeng Date: Fri, 14 Feb 2025 13:28:52 +0800 Subject: [PATCH] =?UTF-8?q?UI=5F2D=E4=BC=9A=E6=9C=89bug=EF=BC=8C=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E4=BD=BF=E7=94=A8GIZMOS=EF=BC=8C3.8.4=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E6=B2=A1=E6=9C=89=E5=A5=BD=E7=9A=84=E5=8A=9E=E6=B3=95?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=BF=99=E4=B8=AA=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=90=8E=E7=BB=AD=E5=86=8D=E8=AF=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/inject/hint/hint-v3.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/inject/hint/hint-v3.ts b/src/scripts/inject/hint/hint-v3.ts index 4c846e0..55ad52e 100644 --- a/src/scripts/inject/hint/hint-v3.ts +++ b/src/scripts/inject/hint/hint-v3.ts @@ -110,7 +110,8 @@ export class HintV3 extends HintAdapter { return node; } private createCamera() { - const node = new cc.Node("Camera"); + const node = new cc.Node("InspectorCamera"); + node.layer = this.getLayerID(); const camera = node.addComponent(cc.Camera); camera.priority = Number.MAX_VALUE; camera.layer = this.getLayerID(); @@ -122,7 +123,7 @@ export class HintV3 extends HintAdapter { return camera; } private getLayerID() { - return cc.Layers.Enum.UI_2D; + return cc.Layers.Enum.GIZMOS; } getRectPoints(node: any): RectPoints | null { if (!node.worldPosition) {