http://blog.csdn.net/suifcd/article/details/51570003
Unity5 in asset bundle management to adopt a new way, do not need to MD5 each file, unity has done for us, the need to package the resources Assetbundle attributes, colleagues Unity also provides a packaging management tool Asset Bundle Manager.
Official document description of the tool and how it is used, address
Official Tool Project Engineering address
The use of the method, the tool provides a one-click Packaging, local load simulation, Network Load simulation.
Packaging is simple, set the properties, directly packaged. Load the simulation locally, right-click Simulation mode to switch to this mode for testing.
There is also a local network load simulation, a local set up a resource server, the client to connect the server to carry out dynamic loading resources, but the actual test found that the error, after modification, finally good.
First, you need to modify the variables in the BuildScript.cs
public static string overloadedDevelopmentServerURL = "http://192.168.1.101:7888/";
The specific IP to be set according to your own computer
Then modify the LaunchAssetBundleServer.cs file, mainly the run () function, the modified run function is as follows
Staticvoid Run () {String pathtoassetserver = Path.Combine (Application.datapath,"Assetbundlemanager/editor/assetbundleserver.exe");String Pathtoapp = Application.dataPath.Substring (0, Application.dataPath.LastIndexOf (‘/‘)); Pathtoassetserver = Pathtoassetserver.replace ("/","\\"); Pathtoapp = Pathtoapp.replace ("/","\\"); Killrunningassetbundleserver (); Buildscript.writeserverurl (); string args = Path.Combine (Pathtoapp, "Assetbundles"); ProcessStartInfo startinfo = new ProcessStartInfo (pathtoassetserver); startinfo.arguments = args; Process launchprocess = Process.Start (startinfo); if (launchprocess = = Null | | launchprocess.hasexited = = true | | launchprocess.id = = 0) { //unable to S Tart process UnityEngine.Debug.LogError ("Unable Start assetbundleserver process"); else { //we seem to has launched, let's Save the PID instance.m_serverpid = Launchprocess.id;}}
This will be used normally.
Project projects are loaded with examples of resource scenarios that are interesting to study on their own.
Unity 5 Official Packaging management tool Asset Bundle Manager