From 84a28afe05c68b2c6c5c6616d6cc468cc4001971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=98=81=EB=AF=BC?= <117150306+jym04@users.noreply.github.com> Date: Wed, 28 May 2025 23:15:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EC=B4=88=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=EC=A0=9D=ED=8A=B8=20=EC=98=A4=ED=94=88=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=ED=8C=8C=EC=9D=BC=EC=9D=84=20=EC=84=A0?= =?UTF-8?q?=ED=83=9D=ED=95=98=EC=A7=80=20=EC=95=8A=EC=95=84=EB=8F=84=20Ope?= =?UTF-8?q?n=20=EB=90=98=EC=96=B4=EB=B2=84=EB=A6=AC=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Studio/UI/Panel/Panel_OpenProjectInfo.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Assets/Scripts/Studio/UI/Panel/Panel_OpenProjectInfo.cs b/Assets/Scripts/Studio/UI/Panel/Panel_OpenProjectInfo.cs index 7925fbd4..f3c929ef 100644 --- a/Assets/Scripts/Studio/UI/Panel/Panel_OpenProjectInfo.cs +++ b/Assets/Scripts/Studio/UI/Panel/Panel_OpenProjectInfo.cs @@ -47,6 +47,9 @@ namespace Studio.UI private void OnEndEditProjectRoute(string input) { + if (!IsPathVaild(input)) + return; + Footer.gameObject.SetActive(true); var name = Path.GetFileNameWithoutExtension(input); Text_ProjectName.text = name; @@ -119,5 +122,19 @@ namespace Studio.UI var route = InputField_ProjectRoute.text; return route; } + private bool IsPathVaild(string path) + { + if(path == string.Empty) + { + Debug.Log("The project path entry field is empty"); + return false; + } + else if (!File.Exists(path)) + { + Debug.Log("The path you entered is not a valid path"); + return false; + } + return true; + } } } -- 2.48.1.windows.1