public void UnRef(AssetRef assetRef)
        {
            if (assetRef == null)
            {
                return;
            }
            if (refList != null)
            {
                return;
            }
            refList.RemoveRef(assetRef);
#if UNITY_EDITOR
            OnUnRef(this, assetRef);
#endif
        }
Ejemplo n.º 2
0
 //释放强引用资源
 public void ReleaseCache(AssetHandle assetHandle)
 {
     strongRefs.RemoveRef(assetHandle.assetRef);
 }
Ejemplo n.º 3
0
 //释放缓存的弱引用资源
 public void ReleaseWeakCache(AssetHandle assetHandle)
 {
     weakRefs.RemoveRef(assetHandle.assetRef);
 }