public static void Build() { if (!DisplayDeletionWarning("Build Asset Delivery Demo")) { return; } var buildPlayerOptions = CommandLineBuilder.GetBuildPlayerOptions(AabFilePath, DemoSceneGuid); var assetPackConfig = CreateAssetPackConfig(); if (!Bundletool.BuildBundle(buildPlayerOptions, assetPackConfig)) { throw new Exception("Asset Delivery Demo build failed"); } }
public static void Build() { if (!DisplayDeletionWarning("Build Asset Delivery Demo")) { return; } var assetPackConfig = CreateAssetPackConfig(); var buildPlayerOptions = AndroidBuildHelper.CreateBuildPlayerOptions(AabFilePath); buildPlayerOptions.scenes = new[] { AssetDatabase.GUIDToAssetPath(DemoSceneGuid) }; if (!Bundletool.BuildBundle(buildPlayerOptions, assetPackConfig)) { throw new Exception("Asset Delivery Demo build failed"); } }