Load Asset 에서 폴더 선택 시 경로가 폴더안의 첫 번째 파일로 지정되는 오류 수정 및 경로 폰트 크기 조정 #165

Merged
UVCXR merged 2 commits from jym/250617_00 into main 2025-06-18 09:37:02 +09:00
3 changed files with 14 additions and 5 deletions

View File

@@ -2239,8 +2239,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 25
m_fontSizeBase: 25
m_fontSize: 14
m_fontSizeBase: 14
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18

View File

@@ -730,8 +730,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 22
m_fontSizeBase: 22
m_fontSize: 16
m_fontSizeBase: 16
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18

View File

@@ -4,6 +4,8 @@ using TMPro;
using UnityEngine.UI;
using TriLibCore.SFB;
using System;
using System.IO;
using System.Collections;
namespace Studio.UI
{
@@ -36,7 +38,10 @@ namespace Studio.UI
if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name))
{
InputField_URL.text = paths[0].Name;
var filePath = Path.GetFullPath(paths[0].Name);
var directoryPath = Path.GetDirectoryName(filePath);
InputField_URL.text = NormalizePath(directoryPath);
InputField_URL.onEndEdit?.Invoke(InputField_URL.text);
}
}
@@ -45,5 +50,9 @@ namespace Studio.UI
var url = InputField_URL.text;
return url;
}
string NormalizePath(string path)
{
return path.Replace("\\", "/"); // ¶Ç´Â ToUpperInvariant(), OS¿¡ µû¶ó
}
}
}