GithubHelp home page GithubHelp logo

assetgraph's Introduction

AssetGraph

AssetGraph is a visual toolset lets you configure and create Unity's AssetBundles. It is intended to create rule-based configuration in visual form to create and manage efficient workflow around AssetBundle generation.

##Usage ###1.Add Nodes Right click AssetGraph canvas gives you list of nodes you can create. Select one of them and create nodes. To start, create Loader node to identify which assets should go into AssetBundles. SS

###2.Connect Them When you create more than two nodes, let's connect them. Simply click the dot on created node, drag and drop to the dot of other node you wish to connect, then you will have link.

AssetGraph gives you live update preview of asset list that will be passed through the link. By clicking link you will see the full list of assets.

SS

###3.Configure Settings By selecting a node, you can configure settings for your AssetBundle building rules. I.e. Filter node let you configure filtering rules, Importer node let you configure different importing setting you wish to apply onto assets go through that node. SS

###4.Build It! By pressing Build button on AssetGraph window, AssetBundles are built respect to rules you created. Visual editor lets you build AssetBunldes in the way you want to while keeping everything easy, repeatable and scalable. SS
SS
SS

##Why Rule Based? Because AssetGraph handles AssetBundle build pipeline by rules, programmers can safely build simple workflow with artists or game designers without making them worry about AssetBundle configuration. When they add new assets into project, AssetGraph automatically takes care of them and build necessary AssetBundles by your rule(s).

##Nodes tips There are several types of nodes you can use to construct AssetBundle building pipeline.

###Loader Loader finds and lists assets. You can specify root directory of assets to target. You can also select directory outside /Assets/.

  • IN: none
  • OUT: list of assets under given root directory

SS

###Filter Filter filters list of assets passed by previous node. You can add multiple filtering rules to create multiple filter result.

  • IN: list of assets
  • OUT: list of assets which matches given filter setting

SS

###Importer Importer overwrites import settings of assets passed by previous node for this AssetBundle build. (NOTE: original asset configuration remains. )

  • IN: list of assets
  • OUT: list of assets with given importer settings applied

SS

###Grouping Grouping makes a group of resources from given list of assets by configured keyword. "Group" is very useful approach for building AssetBundle. In keyword configuration, you can use ""* as a wildcard.

  • IN: list of assets
  • OUT: list of group of assets

SS
SS
SS

###Prefabricator Prefabricator is a node that let you create Prefab in the form you need in your game. You can use Prefabricator by extending AssetGraph.PrefabricatorBase script and make your own Prefab.

  • IN: list of group of assets
  • OUT: list of group of assets (generated prefabs added to each group)

SS

Prefabricator code example:

public class CreateCharaPrefab : AssetGraph.PrefabricatorBase {
	public override void In (string groupKey, List<AssetGraph.AssetInfo> source, string recommendedPrefabOutputDir) {
		/*
			create character's prefab.

			1.texture & material -> set texture to the material of model.
			2.model -> instantiate, then set material to model.
			3.new prefab -> prefabricate model to new prefab.
			4.delete model instance from hierarchy.
		*/

		~~~ DO SOMETHING ~~~
		
		// export prefab data.
		PrefabUtility.ReplacePrefab(modelObj, prefabFile);
		
	}
}

full example script is here.

###Bundlizer Bundlizer create "bundle" of given group of assets and configure generating AssetBundle's filename. "*" will be replaced to the grouping identifier.

  • IN: list of group of assets
  • OUT: list of bundles

SS

###BundleBuilder BundleBuilder create actual AssetBundle files from given list of bundle configurations. By using Bundlizer and BundleBuilder(s), you can simultaneously create AssetBundles with different AssetBundle configuration (i.e. compressed & uncompressed)

  • IN: list of bundles
  • OUT: list of generated AssetBundle files

SS

###Exporter Exporter saves given assets into given directory. You can also select directory outside /Assets/.

  • IN: list of assets (or AssetBundle files)

SS

#License

The MIT License (MIT) Copyright (c) 2016 Unity Technologies

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

assetgraph's People

Stargazers

 avatar

Watchers

 avatar

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.