Class CrossReferenceAnalyzer
- Namespace
- TAssetBundle.Editor
- Assembly
- TAssetBundle.Editor.dll
Analyzes cross references (circular dependencies) between asset bundles to identify which specific assets are causing the problem
public static class CrossReferenceAnalyzer
- Inheritance
-
CrossReferenceAnalyzer
- Inherited Members
Methods
Analyze(string, string, Dictionary<string, string[]>)
Analyze cross references between two bundles to find the specific assets causing circular dependencies
public static CrossReferenceResult Analyze(string bundleA, string bundleB, Dictionary<string, string[]> assetBundleAssets)
Parameters
bundleAstringFirst bundle name
bundleBstringSecond bundle name
assetBundleAssetsDictionary<string, string[]>Dictionary mapping bundle names to their asset paths
Returns
- CrossReferenceResult
CrossReferenceResult containing the specific asset references
BuildAssetBundleAssetsMap(AssetBundleBuild[])
Build a dictionary mapping bundle names to their asset paths from AssetBundleBuild array
public static Dictionary<string, string[]> BuildAssetBundleAssetsMap(AssetBundleBuild[] assetBundleBuilds)
Parameters
assetBundleBuildsAssetBundleBuild[]Array of AssetBundleBuild
Returns
- Dictionary<string, string[]>
Dictionary mapping bundle names to asset paths
FormatErrorMessage(CrossReferenceResult)
Format the cross reference result as a detailed error message
public static string FormatErrorMessage(CrossReferenceResult result)
Parameters
resultCrossReferenceResultThe cross reference analysis result
Returns
- string
Formatted error message string