sassembla / AssetRails-Support

Sample inside.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#AssetRails Overview

ver 1.0.0

http://u3d.as/content/sassembla/asset-rails

what is this:
-> Tool for generating AssetBundles from command line and CI(e.g. Jenkins).

jenkins

##AssetBundle Generator as a command line tool

command line for Mac:

/Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode\
 -quit -projectPath $(pwd)\
 -executeMethod AssetRailsController.Bundlize

command line args document

##Trial version Please try AssetRails with free version.

Trial version of AssetRails

##Sample usage ####From command line from command line, you can generate AssetBundles from sample resources in 4 step.

  1. decompress "PROJECT_FOLDER/Assets/AssetRails/Samples/Resources(AssetRails).zip"
  2. move opened "Resources(AssetRails)" folder into PROJECT_FOLDER/
  3. open Assets/AssetRails/AssetRailsConsole.html
  4. running command line

in PROJECT_FOLDER,

Mac:
	sh Assets/AssetRails/Samples/ShellScript/run.sh

Windows:
	"Assets\AssetRails\SampleScripts\Bat\run.bat"

you can see progress of generating!

####From Jenkins here is generate AssetBundles via Jenkins in 5 steps.

  1. setup Jenkins first.

  2. create new Jenkins job.

  3. move the project which contains AssetRails into Jenkins's job workspace folder. e.g. "/Users/Shared/Jenkins/Home/jobs/JENKINS_JOB/workspace/PROJECT_FOLDER/AssetRails"

  4. in Jenkins setting, setup shell script or batch file like below.

run scripts from PROJECT_FOLDER.

cd PROJECT_FOLDER

Mac:
	sh Assets/AssetRails/Samples/ShellScript/run.sh

Windows:
	"Assets\AssetRails\SampleScripts\Bat\run.bat"

+5. open Assets/AssetRails/AssetRailsConsole.html from Jenkins's workspace in browser.

http://URL_OF_JENKINS_JOB/ws/AssetRails/AssetRailsConsole.html

That's all!

##Loading sample here is the example implementation for downloading & using the AssetBundles which derived from the AssetRails.
Samples/AssetBundleReaderProject

##Build pipeline You can construct pipeline which called "route".

  • import, prefabricate, bundlize, versioning.
  • Run multiple routes in order. Supported order format is json & toml(experimental).

command line args document

  • AssetRails has Runner-API for each route. You can programming it's runner.

runners API document

##Web console & run Jenkins job AssetRails has browser interface.
jenkins

Also you can run Jenkins job from AssetRails Console if AssetRails contained project is under the Jenkins.

##Folder format Below is default folder-format for AssetRails.
You can import every data which is supported by Unity,
including .meta files too.

overview

##Manage AssetBundles ###Generate AssetBundle-data-list by versioning.

versionedList.json

{
    "versioned": 1,
    "AssetBundles": [
        {
            "bundleName": "characters_enemy.assetBundle",
            "revision": 1,
            "resourceNames": [
                "texture",
                "enemy_material",
                "enemy_prefab"
            ],
            "size": 727140,
            "crc": 235040124
        },
        {
            "bundleName": "characters_hero.assetBundle",
            "revision": 1,
            "resourceNames": [
                "texture",
                "hero_material",
                "hero_prefab"
            ],
            "size": 727140,
            "crc": 2232339018
        }
    ]
}	

full example is in Sample project.

###fast multi platform bundlize & manage support Generate & hold versioned-AssetBundles for each platform.

###use inherited AssetBundles supported. You can generate new versioned-AssetBundles group with old versioned-AssetBundles.

below example will generate new version 2 versiond-AssetBundles from version 1's AssetBundles and new AssetBundlse.

/Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode\
 -quit -projectPath $(pwd)\
 -executeMethod AssetRailsController.Versioning -v 2 -p iPhone\
 -b 1

see versioning in deep.

#Future

  • Writing AssetBundle's dependency graph will be supported.

#Caution

  • AssetRails can only run under "External Version Control Support = Visible Meta Files".
  • This Asset is not for generating AssetBundles without Unity Pro license.

##Online Support Let's issue,, but, if you won't,

fill the check list below

checklist:

  1. Unity version : Unity ~
  2. Platform: Win7,8.x, or Mac OS X 10.x.x

then

please contact https://twitter.com/sassembla or sassembla@mac.com

About

Sample inside.

License:Other