From d787f27a376c8f359a5f246715ff126bd59a29dd Mon Sep 17 00:00:00 2001 From: BelicusBr Date: Tue, 6 Sep 2022 03:43:00 -0300 Subject: [PATCH] #Update --- Editor/Asset Bundle/AssetsItemRefDraw.cs | 2 +- Editor/Asset Bundle/CobilasAssetManagementWin.cs | 10 +++++----- Runtime/Asset Bundle/CobilasAssetManagement.cs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Editor/Asset Bundle/AssetsItemRefDraw.cs b/Editor/Asset Bundle/AssetsItemRefDraw.cs index 8c820ed..2df97eb 100644 --- a/Editor/Asset Bundle/AssetsItemRefDraw.cs +++ b/Editor/Asset Bundle/AssetsItemRefDraw.cs @@ -65,7 +65,7 @@ public override void OnInspectorGUI() { if (temp.MyObject != null && temp.UseTargetObjectName) { AssetDatabase.RenameAsset( AssetDatabase.GetAssetPath(temp), - CobilasPaths.GetFileNameWithoutExtension(AssetDatabase.GetAssetPath(temp.MyObject)) + UnityPath.GetFileNameWithoutExtension(AssetDatabase.GetAssetPath(temp.MyObject)) ); AssetDatabase.Refresh(); } diff --git a/Editor/Asset Bundle/CobilasAssetManagementWin.cs b/Editor/Asset Bundle/CobilasAssetManagementWin.cs index 0afbe13..28e645a 100644 --- a/Editor/Asset Bundle/CobilasAssetManagementWin.cs +++ b/Editor/Asset Bundle/CobilasAssetManagementWin.cs @@ -8,10 +8,10 @@ namespace Cobilas.Unity.Editor.Management.Resources.Asset { public static class CobilasAssetManagementWin { - private static string camFolderPath => CobilasPaths.Combine( - CobilasPaths.GetDirectoryName(CobilasPaths.AssetsPath), + private static string camFolderPath => UnityPath.Combine( + UnityPath.GetDirectoryName(UnityPath.AssetsPath), "AssetBundle"); - private static string camBilder => CobilasPaths.Combine(CobilasPaths.AssetsPath, "AssetBundleBild"); + private static string camBilder => UnityPath.Combine(UnityPath.AssetsPath, "AssetBundleBild"); [InitializeOnLoadMethod] private static void Init() { @@ -35,7 +35,7 @@ private static void AssemblyAssetBundle() { for (int I = 0; I < ArrayManipulation.ArrayLength(itemRefs); I++) { string relativePath = AssetDatabase.GetAssetPath(itemRefs[I]); if (!relativePath.Contains("Assets/AssetBundleBild")) continue; - string relativePath2 = CobilasPaths.GetDirectoryName(relativePath); + string relativePath2 = UnityPath.GetDirectoryName(relativePath); DLCItemPath dLCtemp = DLCItemPath.GetDLCItemPath( DLCItemPath.GetDLCName(AssetsItemPaths.RemoveAssetBundleBildPath(relativePath2)), dLCs); @@ -66,7 +66,7 @@ private static void AssemblyAssetBundle() { ArrayManipulation.Add(build, ref builds); } - camdlcpath = CobilasPaths.Combine(camFolderPath, $"CTOR_{dLCs[I].name}"); + camdlcpath = UnityPath.Combine(camFolderPath, $"CTOR_{dLCs[I].name}"); ClearAssetBundle(camdlcpath); _ = BuildPipeline.BuildAssetBundles($"AssetBundle/CTOR_{dLCs[I].name}", builds, BuildAssetBundleOptions.None, EditorUserBuildSettings.activeBuildTarget); diff --git a/Runtime/Asset Bundle/CobilasAssetManagement.cs b/Runtime/Asset Bundle/CobilasAssetManagement.cs index 8078bb4..867eea6 100644 --- a/Runtime/Asset Bundle/CobilasAssetManagement.cs +++ b/Runtime/Asset Bundle/CobilasAssetManagement.cs @@ -14,8 +14,8 @@ public static class CobilasAssetManagement { private static List bundles = null; #if UNITY_EDITOR - public static string camFolder => CobilasPaths.Combine(CobilasPaths.ResourcesPath, "camFolder"); - public static string camFile => CobilasPaths.Combine(camFolder, "camDefaultPath.txt"); + public static string camFolder => UnityPath.Combine(UnityPath.ResourcesPath, "camFolder"); + public static string camFile => UnityPath.Combine(camFolder, "camDefaultPath.txt"); #endif public static int AssetsCount => bundles == null ? 0 : bundles.Count;