Class BuildLayout.Bundle.BundleDependency
Represents a dependency from the containing Bundle to dependentBundle, with AssetDependencies representing each of the assets in parentBundle that create the link to dependentBundle
Inherited Members
Namespace: UnityEditor .AddressableAssets .Build.Layout
Assembly: solution.dll
Syntax
[Serializable]
public class BuildLayout.Bundle.BundleDependency
Fields
Name | Description |
---|---|
Asset |
The list of assets that link the parent bundle to the DependencyBundle |
Dependency |
The bundle that the parent bundle depends on |
Efficiency | The Efficiency of the connection between the parent bundle and DependencyBundle irrespective of the full dependency tree below DependencyBundle. Value is equal to [Serialized Filesize of assets In Dependency Bundle Referenced By Parent]/[Total size of Dependency Bundle on disk] Example: Given two Bundles A and B that are each 10 MB on disk, and A depends on 5 MB worth of assets in B, then the Efficiency of DependencyLink A->B is 5/10 = .5 |
Expanded |
Percentage of Efficiency asset usage that uses the entire dependency tree of this bundle dependency. This includes DependencyBundle and all bundles beneath it. Value is equal to [Total Filesize of Dependency Assets] / [Total size of all dependency bundles on disk] Example: There are 3 bundles A, B, and C, that are each 10 MB on disk. A depends on 2 MB worth of assets in B, and B depends on 4 MB worth of assets in C. The Efficiency of the dependencyLink from A->B would be 2/10 -> 20% and the ExpandedEfficiency of A->B would be (2 + 4)/(10 + 10) -> 6/20 -> 30% |