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

[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:
    273
    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:
    273
    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.