Why are there scripts in my bundles?

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.

It’s as you said, it is just the serialized values for those scripts, not the source code itself (or the generated assembly).

1 Like