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

Why are there scripts in my bundles?

Discussion in 'Asset Bundles' started by PW_Dave, May 1, 2019.

  1. PW_Dave

    PW_Dave

    Joined:
    Feb 9, 2017
    Posts:
    30
    I've been perusing the build logs for our bundles and noticed that many of the bundles with prefabs and anims have scripts listed in their Used Assets lists. The scripts are either components on the prefabs, or behaviours in the anim controllers. I was under the impression that scripts were not allowed in bundles. Is this perhaps just the serialized values for those scripts that are being included? The memory usage is nominal, so it's not a problem. I'm just curious about what's going on beneath the hood.
     
  2. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    It's as you said, it is just the serialized values for those scripts, not the source code itself (or the generated assembly).
     
    PW_Dave likes this.