WWW.assetBundle 资源包
var assetBundle : AssetBundle
Description描述
Streams an AssetBundle that can contain any kind of asset from the project folder.
AssetBundle的数据流,可以包含项目文件夹中的任何类型资源。
function Start () {var www = new WWW ("http://myserver/myBundle.unity3d");//定义www为WWW类型并且赋予一个网络资源进行下载。yield www;//等待下载完毕,完全获取www资源。// Get the designated main asset and instantiate it.//获取指定的数据资源并且实例化。Instantiate(www.assetBundle.mainAsset);实例化生成数据在场景中。}