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

Question Scripts attached to GameObject bundle, should be known by the application in order to work?

Discussion in 'Asset Bundles' started by ofirudwork, Jan 18, 2023.

  1. ofirudwork

    ofirudwork

    Joined:
    Nov 3, 2021
    Posts:
    17
    Scripts attached to GameObject bundle, Must be known by the application in order to work?

    In addition, will it work if my application depends on Interface x and that interface is implemented in the Bundle?
     
  2. AndrewSkow

    AndrewSkow

    Unity Technologies

    Joined:
    Nov 17, 2020
    Posts:
    89
    Yes, all the types used in the AssetBundles must be compiled into the player. AssetBundles don't contain any code, only serialized objects.