- Home /
How to load a single GameObject from an AssetBundle without a specific name ?
So, I want to load a single GameObject from an AssetBundle without a specific name of the GameObject. In pervious versions of unity you were able to use assetBundle.mainAsset but i haven't found out a way to specifiy a main asset.
How is it supposed to know which asset to load without an identifier? Do you just want to load an asset at random out of the package?
To load something specific, you should know a way to address it. If you don't have a name of the GameObject, you can use a:
AssetBundle.LoadAllAssets
To be able to select something specific when you will have a name of the object you need or to load only objects of the needed type.
Your answer
Follow this Question
Related Questions
Alternative to BuildStreamedSceneAssetBundle ? 0 Answers
How to load a file during runtime? (Resources folder doesn't work) 0 Answers
Multiple Cars not working 1 Answer
Is it possible to Spawn an AssetBundle in HLAPI? 3 Answers
Distribute terrain in zones 3 Answers