Unity 5 Official Packaging management tool Asset Bundle Manager

Source: Internet
Author: User
Tags unity 5

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.