public static List <string> GetCachedDataByNodeKind(AssetBundleGraphSettings.NodeKind nodeKind, string nodeId) { var platformPackageKeyCandidate = SystemDataUtility.GetCurrentPlatformKey(); switch (nodeKind) { case AssetBundleGraphSettings.NodeKind.IMPORTSETTING_GUI: { // no cache file exists for importSetting. return(new List <string>()); } case AssetBundleGraphSettings.NodeKind.MODIFIER_GUI: { // no cache file exists for modifier. return(new List <string>()); } case AssetBundleGraphSettings.NodeKind.PREFABRICATOR_SCRIPT: case AssetBundleGraphSettings.NodeKind.PREFABRICATOR_GUI: { var cachedPathBase = FileUtility.PathCombine( AssetBundleGraphSettings.PREFABRICATOR_CACHE_PLACE, nodeId, platformPackageKeyCandidate ); // no cache folder, no cache. if (!Directory.Exists(cachedPathBase)) { // search default platform + package cachedPathBase = FileUtility.PathCombine( AssetBundleGraphSettings.PREFABRICATOR_CACHE_PLACE, nodeId, SystemDataUtility.GetDefaultPlatformKey() ); if (!Directory.Exists(cachedPathBase)) { return(new List <string>()); } } return(FileUtility.FilePathsInFolder(cachedPathBase)); } case AssetBundleGraphSettings.NodeKind.BUNDLIZER_GUI: { // do nothing. break; } case AssetBundleGraphSettings.NodeKind.BUNDLEBUILDER_GUI: { var cachedPathBase = FileUtility.PathCombine( AssetBundleGraphSettings.BUNDLEBUILDER_CACHE_PLACE, nodeId, platformPackageKeyCandidate ); // no cache folder, no cache. if (!Directory.Exists(cachedPathBase)) { // search default platform + package cachedPathBase = FileUtility.PathCombine( AssetBundleGraphSettings.BUNDLEBUILDER_CACHE_PLACE, nodeId, SystemDataUtility.GetDefaultPlatformKey() ); if (!Directory.Exists(cachedPathBase)) { return(new List <string>()); } } return(FileUtility.FilePathsInFolder(cachedPathBase)); } default: { // nothing to do. break; } } return(new List <string>()); }