AssetBundle 资源包

Inherits from Object

AssetBundles let you stream additional assets via the WWW class and instantiate them at runtime. AssetBundles are created via BuildPipeline.BuildAssetBundle.

AssetBundles让你通过WWW类流式加载额外的资源并在运行时实例化它们。AssetBundles通过BuildPipeline.BuildAssetBundle创建。

参见: WWW.assetBundle, BuildPipeline.BuildPlayer.

function Start () {

	//开始下载

	var www = WWW ("http://myserver/myBundle.unity3d");

	//等待下载完成	

	yield www;



	//获取指定的主资源并实例化

	Instantiate(www.assetBundle.mainAsset);

}

Variables变量

Functions函数

Class Functions类函数

Inherited members继承成员

Inherited Variables继承变量

Inherited Functions继承函数

Inherited Class Functions继承类函数

Page last updated: 2011-9-16