Search Unity

Missing scripts on gameObject created from asset bundle

Discussion in 'Editor & General Support' started by voldemarz, Jan 30, 2013.

  1. voldemarz

    voldemarz

    Joined:
    Sep 19, 2011
    Posts:
    25
    I have a prefab with 2 scripts A and B attached to it. The prefab is packaged into an asset bundle and streamed from server if needed.

    The problem is that when game object from the asset bundle is instantiated only the script A is present with all the right settings (public field values), but script B is missing.

    The problem is present in Web Player, but in the Editor everything is fine. Any idea why? Isn't it supposed to work?

    I know that you can't package scripts in asset bundles and expect them to work, need to load them manually using Reflection.