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

Are GameObjects ( from scenes or prefabs scripts) scripts embeded ?

Discussion in 'Addressables' started by Kiupe, Oct 18, 2018.

  1. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
    Hi guys,

    I wanted to know if an AddressableAsset can be used to download content ( scenes or prefabs) that contain scripts ? Basically, can an AddressableAsset be used to load code ?

    Thanks
     
  2. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    559
    scripts are always compiled into dll and included in the build. GameObjects (actually, Component and ScriptableObject) just reference those scripts and have their fields serialized.
     
  3. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
    Makes sense, thanks.