restaurant_world_setting #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "restaurant_world_setting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -19,3 +19,3 @@
// }
Debug.Log(upperPath);
if (upperPath.Contains("ASSETS/_DDD/_RAW/SPRITES/"))
리터럴 제거하고 메소드 추출해서 재사용하거나 bool 지역변수로 빼서 재사용해주세요.
@ -34,3 +35,3 @@
// 특정 폴더일 때만 작동
if (toPath.StartsWith("Assets/_DDD/_Raw/Sprites/"))
if (upperPath.Contains("ASSETS/_DDD/_RAW/SPRITES/"))
리터럴 제거
@ -146,3 +144,3 @@
if (maxSize > 1024)
{
CreateSingleAtlas(filePath, path.Replace("/_Raw/", "/Addressables/") + $"_{fileName}.spriteatlasv2");
CreateSingleAtlas(filePath, path.Replace("/_Raw/", "/_Addressables/") + $"_{fileName}.spriteatlasv2");
리터럴 제거
@ -343,3 +341,2 @@
CreateAtlas(Utils.FolderPath(path),
Utils.FolderPath(path).Replace("/_Raw/", "/Addressables/") + ".spriteatlasv2");
//CreatePrefab(path, (path.Replace("/Raw/Sprites/", "/Addressables/") + ".prefab").Replace(".png", ""));
Utils.FolderPath(path).Replace("/_Raw/", "/_Addressables/") + ".spriteatlasv2");
리터럴 제거
@ -344,2 +342,2 @@
Utils.FolderPath(path).Replace("/_Raw/", "/Addressables/") + ".spriteatlasv2");
//CreatePrefab(path, (path.Replace("/Raw/Sprites/", "/Addressables/") + ".prefab").Replace(".png", ""));
Utils.FolderPath(path).Replace("/_Raw/", "/_Addressables/") + ".spriteatlasv2");
//CreatePrefab(path, (path.Replace("/Raw/Sprites/", "/_Addressables/") + ".prefab").Replace(".png", ""));
불필요한 코드 레거시 주석 삭제 바람
추후 필요하면 로컬 히스토리 살펴보기
@ -21,0 +46,4 @@
{
if (sprite == null) continue;
var key = sprite.name.Replace("(Clone)", "").Trim();
리터럴 제거, "" 대신 string.Empty 등을 사용.