Skip to content

Commit

Permalink
📦 1.1.4 Update
Browse files Browse the repository at this point in the history
- A hotfix to a compatibility issue with the asset and others that use the same indexing system UtilEditor.cs class name. This update should correct that.
  • Loading branch information
JonathanMCarter committed Jun 22, 2023
1 parent 094529a commit 40dde5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Code/Editor/Settings/AssetVersionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public static class AssetVersionData
/// <summary>
/// The version number of the asset...
/// </summary>
public static string VersionNumber => "1.1.3";
public static string VersionNumber => "1.1.4";


/// <summary>
/// The date this release of the asset was submitted for release...
/// </summary>
public static string ReleaseDate => "11/06/2023";
public static string ReleaseDate => "22/06/2023";
}
}
14 changes: 11 additions & 3 deletions Code/Editor/Utility/UtilEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,18 @@ private static string AssetBasePath
{
get
{
var script = AssetDatabase.FindAssets($"t:Script {nameof(UtilEditor)}")[0];
var path = AssetDatabase.GUIDToAssetPath(script);
string path = string.Empty;

foreach (var scriptFound in AssetDatabase.FindAssets($"t:Script {nameof(UtilEditor)}"))
{
path = AssetDatabase.GUIDToAssetPath(scriptFound);

if (!path.Contains("Build Versions") || !path.Contains("/UtilEditor.cs")) continue;
path = AssetDatabase.GUIDToAssetPath(scriptFound);
path = path.Replace("/Carter Games/Build Versions/Code/Editor/Utility/UtilEditor.cs", "");
return path;
}

path = path.Replace("/Carter Games/Build Versions/Code/Editor/Utility/UtilEditor.cs", "");
return path;
}
}
Expand Down

0 comments on commit 40dde5c

Please sign in to comment.