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

AssetBundle uage from Editor

Discussion in 'Asset Bundles' started by Aleksander87, Apr 5, 2020.

  1. Aleksander87

    Aleksander87

    Joined:
    Jul 7, 2017
    Posts:
    20
    Hi!
    I've an AssetBundle in editor mode. It's a ScriptableObject which references many assets.
    If I try to take and use any "sub-asset" I just get YAML representation of that asset, which I can't use.
    If I do the same in play mode everything work.
    I tried AssetBundle.LoadAssetWithSubAssets, in editor mode but nothing change.
    Is there a way to load those "sub-assets" without entering play mode?

    Thank you!
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Not sure i understand - you have a ScriptableObject that references assets (sub assets), and you're trying to load those sub assets in edit mode?

    How are you loading them? can you show the code you are using?
    Also, loading assets that are not sub assets works for you ?