Examples of AssetBundle


Examples of info.ata4.unity.asset.bundle.AssetBundle

        processAsset(asset);
    }

    protected void processAssetBundleFile(Path file) throws IOException {
        // load asset bundle
        AssetBundle ab = new AssetBundle();
        ab.open(file);
       
        // process bundle
        Path outDir = PathUtils.removeExtension(file);
        setOutputDir(outDir);
        processAssetBundle(ab);
       
        if (processAssets && processBundledAssets) {
            // process bundle entries
            for (Map.Entry<String, ByteBuffer> entry : ab.getEntries().entrySet()) {
                String pathString = entry.getKey();

                // skip libraries
                if (pathString.endsWith(".dll") || pathString.endsWith(".mdb")) {
                    continue;
View Full Code Here

Examples of info.ata4.unity.asset.bundle.AssetBundle

        try (InputStream is = getHTTPInputStream(unityUrl)) {
            Files.copy(is, tmpFile);
        }
       
        // load bundle for validation and to get revision
        AssetBundle ab = new AssetBundle();
        ab.load(tmpFile);
       
        // create version sub-directory
        String version = ab.getEngineVersion().toString();
        String versionDirName = version.substring(0, 3);
       
        L.log(Level.INFO, "Revision: {0}", version);
       
        Path versionDir = baseDir.resolve(versionDirName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.