Reputation: 21
use UnityEditor.dll
, how to create assetbundle?
when using UnityEditor.dll
to Execute BuildPipeline.CreateAssetbundle()
to create like that in Unity3d editor, it will not work.
does it must be run in Unity Editor?
Upvotes: 2
Views: 3522
Reputation: 5434
Since creating AssetBundles is only for Pro versions of Unity3D, you cannot use the DLL outside the editor.
If you are looking to create some automated tool to export the bundle, you can also use Unity with in batch mode and without graphics. Check out the Command Line Arguments available.
Upvotes: 2