Question by
mostafanastary · Dec 01, 2019 at 11:11 AM ·
assetbundletexture2dbundle
How to load asset in bundles whitch i do not know it's name?
Hi, i create asset for my assetbundle by true code by named it like : myassetbundle .
myassetbundle has a texture2d file in it with name linke: dsfvj21dsf45151FDsv.jpg ,
so , i want to instantiate it without name , directly . is it possible ? how?
Comment
Answer by mostafanastary · Dec 02, 2019 at 08:22 AM
Ok, so I use :
Debug.Log(myLoadedAssetBundle.LoadAsset(myLoadedAssetBundle.GetAllAssetNames()[0]));
to get first asset in my assetbundle.
Your answer
![](https://koobas.hobune.stream/wayback/20220612215527im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Serialization depth limit exceeded at 'MaterialNode' error 0 Answers
Can't use an .asset file? 0 Answers
I can't find the Assets/Build AssetsBundle 1 Answer
Downloading Asset Bundle 0 Answers