using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; public class LoadModelAB : MonoBehaviour { public List strlist; public GameObject loadtext; public static Dictionary ModelDic = new Dictionary(); // Start is called before the first frame update void Start() { for (int i = 0;i().text=req.error; } #endif if(ab) { AssetBundleRequest abr =ab.LoadAssetAsync(assetBundleName); yield return abr; GameObject Model = GameObject.Instantiate((GameObject)abr.asset); Model.transform.SetParent(this.transform); Model.transform.localEulerAngles = Vector3.zero; Model.transform.localPosition = Vector3.zero; Model.transform.localScale = Vector3.one; Model.name = assetBundleName+"_Model"; ModelDic.Add(assetBundleName,Model); loadtext.SetActive(false); } } // Update is called once per frame void Update() { } }