Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
        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");
            }
        }