Search Unity

Prefabs and asset bundles

Discussion in 'Asset Bundles' started by tawdry, Jun 23, 2018.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Hi
    So i read that asset bundles can't contain scripts? but what about scripts that are part of a prefab will they be loaded and function as intended?
     
  2. AlienMe

    AlienMe

    Joined:
    Sep 16, 2014
    Posts:
    93
    The script is included in your build (you have to make sure that its not stripped out of your build).

    And the prefab in the asset bundle includes a reference id to the script.
     
  3. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Ok so what you saying is that it will still work fine long as the script is included in the main build thx