Coder Social home page Coder Social logo

Comments (5)

alffanclub avatar alffanclub commented on August 16, 2024

@zenjugit Are you asking how to get the output from your automation tools into the bundle browser? If so, you can look at the code in AssetBundleDataSource for how the browser consumes data, and you can look at https://bitbucket.org/Unity-Technologies/assetbundlegraphtool to see an example of a tool that is setup to be integrated. If you're asking something else, please give me some more details.
Thanks for reaching out.
-Bill

from assetbundles-browser.

alffanclub avatar alffanclub commented on August 16, 2024

One more thing... I just somewhat glossed over the word "batchmode" in my first read. Not really sure how that would be relevant as the bundle browser is purely a visual browser of the bundle data. Unless you want to use it to build your bundles from batch mode. If it's the latter, then you should be able to edit the browser relatively simply to expose that. If you're not asking about that, then my original answer probably still stands.

from assetbundles-browser.

laozhuzz avatar laozhuzz commented on August 16, 2024

thanks, the second answer is exactly what i want.
AssetBundles-Browser is a very good tool , and i want to add it to my project.
Now i run ci build and auto test daily, without open unity nor open some uiwindows,
so if there is an batchmode api to build assetbundle would be very happy for me.

from assetbundles-browser.

alffanclub avatar alffanclub commented on August 16, 2024

Ah, that makes sense. Hopefully it's straightforward for you to customize that build script to work in batchmode to your needs. We don't have plans right now to make this command line friendly because most people that get to the point of building from the command line are far enough along that they'll likely need to customize the build script anyway. If you see a simple way to expose things that you think would be general purpose, feel free to let me know here, or create a PR into the project!
Thanks again for reaching out.

from assetbundles-browser.

0kk470 avatar 0kk470 commented on August 16, 2024

For anyone interested, I find out if you already add bundle folders in the AssetBundleBrowser window, the browser will deal with
bundle dependencies and you just need to write a wrapper class to call the build method in batchmode.

 public static class BuildCommand
    {
        public static void BuildAssetBundles()
        {
            BuildPipeline.BuildAssetBundles("E:/buildtest", BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows);
        }
    }

Here is my batch file on jenkins.

echo  Building AssetBundles

set Unity="C:\Program Files\Unity\Editor\Unity.exe" 

set ProjectPath=E:\MyGame

set logFilePath = E:/buildtest/buildlog.log

%Unity% -quit -batchmode -projectPath "%ProjectPath%" -logfile "%logFilePath%" -executeMethod BuildCommand.BuildAssetBundles

echo   Done

PAUSE

from assetbundles-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.