Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there a way to exclude Auto-included Dependencies from the Player Data?

Discussion in 'Asset Bundles' started by mkg2w, Jun 10, 2018.

  1. mkg2w

    mkg2w

    Joined:
    Aug 19, 2013
    Posts:
    54
    Scenes in our game represent levels.

    In order to reduce build sizes and to allow DLC, we've created a Scene Asset Bundle for one such Scene (Story1). Unity (rightly) automatically adds the scene's dependencies into the bundle.

    (See attachment)

    However, when the build is made, the dependencies are included as part of the Player Data.

    We are unable to explicitly mark the dependencies as belonging to the Asset Bundle, as Unity prevents us from manually adding non-Scene objects to Scene bundles.

    1) Is there any way to get Unity to exclude these auto-added Dependencies in the Player Data ?
    2) If the approach is to package the dependencies into a separate asset bundle, and load this first before the Scene Bundle is loaded, how do we prevent Unity from auto-adding these dependencies into the Scene bundle?
     
  2. mkg2w

    mkg2w

    Joined:
    Aug 19, 2013
    Posts:
    54
    On further inspection, the Dependent resources are not part of the Player Data, so this post is irrelevant.