LoadEmbeddedBundle

Updated a month ago

LoadEmbeddedBundle

Loads an embedded .bundle file (Unity AssetBundle) from your assembly.

var bundle = BundleUtils.LoadEmbeddedBundle(Assembly.GetExecutingAssembly(), "MyNamespace.shopbundle");
var prefab = bundle?.LoadAsset<GameObject>("Assets/REPO/Game/Resources/level/shop/modules/Module - Shop - DE - Example Room.prefab");