public void Destroy() { if (assetBundleItem != null) { AssetBundleUtility.Delete(m_fullPath); assetBundleItem = null; } }
public void Destroy() { if (m_obj != null) { m_obj = null; AssetBundleUtility.Delete(m_fullPath); } }
public AssetBundleItem(string path, string file, bool isHasDependence) { pathName = AssetBundleUtility.GetAssetPath(path); fileName = file; assetBundle = null; refCount = 0; this.isHasDependence = isHasDependence; }
public virtual void LoadAsync(Action callback = null, bool isHasDependence = true) { m_callback = callback; UICoroutine.instance.StartCoroutine(AssetBundleUtility.LoadAsync(m_fullPath, name, LoadAsyncCallback, isHasDependence)); }
/// <summary> /// 加载AssetBundle,获取里面的Asset /// </summary> /// <param name="isHasDependence">是否存在依赖</param> public virtual void Load(bool isHasDependence = true) { AssetBundleItem assetBundleItem = AssetBundleUtility.Load(m_fullPath, name, isHasDependence); m_obj = assetBundleItem.LoadAsset(typeof(UnityEngine.Object)); }
public virtual void LoadAsync(Action callback = null) { m_callback = callback; UICoroutine.instance.StartCoroutine(AssetBundleUtility.LoadAsync(m_fullPath, "", LoadAsyncCallback)); }
public virtual void Load() { assetBundleItem = AssetBundleUtility.Load(m_fullPath, "", false); }