Search Unity

[SOLVED]Loading prefab From AssetBundle crash editor

Discussion in 'Asset Bundles' started by buFFalo94, Mar 8, 2018.

  1. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    251
    Hi guys.
    I'm currently experiencing trouble with some prefab loaded from my AssetBundle so here is the problem whenever I try to load a prefab with scripts containing UNITY_EDITOR it crash (Editor or Player) and when I remove UNITY_EDITOR from that scripts everything load just fine.
    Could some one help me please.
     
  2. buFFalo94

    buFFalo94

    Joined:
    Sep 14, 2015
    Posts:
    251
    I think I've found where this issue came from.
    Building AssetsBundle with type tree enabled definitely solve my problem but increase memory usage so I'll keep using my workaround.
     
unityunity