From 331156a5923403d0a7ea534c8fc749369874d42a Mon Sep 17 00:00:00 2001 From: geondo55 <102933884+geondo55@users.noreply.github.com> Date: Wed, 23 Jul 2025 17:37:59 +0900 Subject: [PATCH] =?UTF-8?q?=ED=88=B4=ED=8C=81=20=EC=9C=84=EC=B9=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Studio/UI/Panel/Panel_Tooltip.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Assets/Scripts/Studio/UI/Panel/Panel_Tooltip.cs b/Assets/Scripts/Studio/UI/Panel/Panel_Tooltip.cs index 52d7b727..bd515e81 100644 --- a/Assets/Scripts/Studio/UI/Panel/Panel_Tooltip.cs +++ b/Assets/Scripts/Studio/UI/Panel/Panel_Tooltip.cs @@ -1,10 +1,7 @@ using System.Reflection; -using System.Xml; using TMPro; using UnityEngine; using UnityEngine.EventSystems; -using UnityEngine.UI; -using UnityEngine.UI.Extensions; using XRLib.UI; namespace Studio.UI @@ -75,13 +72,10 @@ namespace Studio.UI { Vector2 mousePos = Input.mousePosition; - float bgSizeX = image_bg.sizeDelta.x / 2 * Screen.width / standardScreenWidth; - float bgSizeY = image_bg.sizeDelta.y / 2 * Screen.height / standardScreenHeight; - - float movePosX = (mousePos.x + bgSizeX); + float bgSizeY = image_bg.sizeDelta.y * 1.3f * Screen.height / standardScreenHeight; float movePosY = mousePos.y - bgSizeY; - Vector2 movePos = new Vector2(movePosX, movePosY); + Vector2 movePos = new Vector2(mousePos.x, movePosY); image_bg.transform.position = movePos; text_tooltip.transform.position = movePos; -- 2.48.1.windows.1