public AssetBase GetForeign(string id) { int type = Util.ParseForeignAssetID(id, out string uri, out string uuidstr); if (type < 0) { return(null); } AssetBase asset = null; if (m_Cache != null) { asset = m_Cache.GetCached(uuidstr); if (asset != null) { return(asset); } } asset = GetFromLocal(uuidstr); if (asset != null || type == 0) { return(asset); } return(GetFromForeign(uuidstr, uri)); }