/// <summary> /// Get source folders /// </summary> /// <returns></returns> public string[] GetResourcesFolders() { if (resourceFolders != null) { string[] result = new string[resourceFolders.Count]; for (int i = 0; i < resourceFolders.Count; i++) { result[i] = AssetBundleBuildConfigHelper.ConvertString(resourceFolders[i].path); } return(result); } return(new string[0]); }
public string GetPath(string folderName) { switch (pathType) { default: case PublishPathType.Application: return(Path.Combine(Environment.CurrentDirectory, AssetBundleBuildConfigHelper.ConvertString(subpath), "AssetBundles", folderName)); case PublishPathType.StreamingAssets: return(Path.Combine(Application.streamingAssetsPath, AssetBundleBuildConfigHelper.ConvertString(subpath), "AssetBundles", folderName)); case PublishPathType.PersistentDataPath: return(Path.Combine(Application.persistentDataPath, AssetBundleBuildConfigHelper.ConvertString(subpath), "AssetBundles", folderName)); case PublishPathType.Custom: return(Path.Combine(AssetBundleBuildConfigHelper.ConvertString(custom), AssetBundleBuildConfigHelper.ConvertString(subpath), "AssetBundles", folderName)); } }
//private static readonly Regex PathRegex = new Regex(@"^(?:\s*[a-zA-Z]\s*:\s*(?:[\\/](?:\s*[\S-[\/|<>?*:""]]+)+)*(?:\s[\\/]\s*){0,1})&"); /// <summary> /// Get build target URI /// </summary> /// <returns></returns> public string GetTargetURI() { return(Path.Combine(AssetBundleBuildConfigHelper.ConvertString(outputPath), "AssetBundles", GetBuildTargetName())); }