docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    object
    BuildLayout.Bundle.BundleDependency
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.AddressableAssets.Build.Layout
    Assembly: Unity.Addressables.Editor.dll
    Syntax
    [Serializable]
    public class BuildLayout.Bundle.BundleDependency

    Fields

    Name Description
    AssetDependencies

    The list of assets that link the parent bundle to the DependencyBundle

    DependencyBundle

    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

    ExpandedEfficiency

    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%

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)