Skip to content

Commit

Permalink
#Update
Browse files Browse the repository at this point in the history
  • Loading branch information
BelicusBr committed Sep 6, 2022
1 parent e88fda6 commit d787f27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Editor/Asset Bundle/AssetsItemRefDraw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
10 changes: 5 additions & 5 deletions Editor/Asset Bundle/CobilasAssetManagementWin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Asset Bundle/CobilasAssetManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public static class CobilasAssetManagement {
private static List<AssetBundle> 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;

Expand Down

0 comments on commit d787f27

Please sign in to comment.