示例#1
0
        public static void DumpZoneArea()
        {
            var builder = new AssetBundleBuilder();

            builder.environment = ContentServerUtils.ApiEnvironment.ORG;
            builder.DumpArea(new Vector2Int(-110, -110), new Vector2Int(1, 1));
        }
示例#2
0
        public static void DumpBaseAvatars()
        {
            var avatarItemList = GetAvatarMappingList("https://dcl-wearables.now.sh/index.json");

            var builder = new AssetBundleBuilder();

            builder.DownloadAndConvertAssets(avatarItemList);
        }
示例#3
0
        public static void DumpCenterPlaza()
        {
            var builder = new AssetBundleBuilder();

            builder.skipAlreadyBuiltBundles = true;
            var zoneArray = Utils.GetCenteredZoneArray(new Vector2Int(0, 0), new Vector2Int(30, 30));

            builder.DumpArea(zoneArray);
        }
示例#4
0
        public static void ExportSceneToAssetBundles(string[] commandLineArgs)
        {
            AssetBundleBuilder builder = new AssetBundleBuilder();

            builder.skipAlreadyBuiltBundles         = true;
            builder.deleteDownloadPathAfterFinished = true;

            try
            {
                if (AssetBundleBuilderUtils.ParseOption(commandLineArgs, AssetBundleBuilderConfig.CLI_SET_CUSTOM_OUTPUT_ROOT_PATH, 1, out string[] outputPath))
示例#5
0
        public static void DumpMuseum()
        {
            var builder = new AssetBundleBuilder();

            builder.environment             = ContentServerUtils.ApiEnvironment.ORG;
            builder.skipAlreadyBuiltBundles = false;
            var zoneArray = Utils.GetCenteredZoneArray(new Vector2Int(13, 75), new Vector2Int(2, 2));

            builder.DumpArea(zoneArray);
        }
示例#6
0
        static void DumpAreaToMax(AssetBundleBuilder builder, int x, int y)
        {
            if (x >= 140 || y >= 140)
            {
                return;
            }

            Debug.Log($"--DumpAreaToMax {x}, {y}");
            int nextX = x + 10;
            int nextY = y;

            if (nextX > 130)
            {
                nextX = -130;
                nextY = y + 10;
            }

            builder.DumpArea(new Vector2Int(x, y), new Vector2Int(10, 10), (error) => DumpAreaToMax(builder, nextX, nextY));
        }