오브젝트 선택 시 정보 창 디자인 수정 및 크레인 정보창 연동 #125

Merged
UVCXR merged 6 commits from pgd/20250528_3merge into main 2025-05-28 23:23:03 +09:00
Showing only changes of commit 4ee15664af - Show all commits

View File

@@ -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;
}
}
}