Version.Settings.Path.BasePath throws exceptions on Windows

Issue #48 resolved
Jason Horsburgh created an issue

https://bitbucket.org/Unity-Technologies/assetbundlegraphtool/src/f2a460fe4d29a8aaada8132579221e922480204e/UnityEngine.AssetBundleGraph/Editor/System/Model/V2/Settings.cs?at=1.3%2Frelease&fileviewer=file-view-default#Settings.cs-109

On release 1.3 the code to find the base path of the ABGT install will fail on windows because it does a path comparison with the wrong path separator in ASSETS_PATH variable before going on to replace path separator.

e.g. The comparison ends up trying to do: "Assets\AssetBundleGraphTool".LastIndexOf("Assets/");

looks like taking the separator replace at the end of the function and applying it when you extract the path first would be an easy fix for it.

Comments (4)

  1. Jason Horsburgh reporter

    The same bug also exists in AssetBundleBuildMap.cs where it looks like some code has been copy-pasted

  2. Log in to comment