public T TakeDirect <T>(string id, string ext_ = null) { var ret = (T)AssetAdapter.Take(id, typeof(T), ext_); if (ret == null) { Log.Warning($"failed to directly take {id}.{ext_}"); } return(ret); }
public T TakePersistent <T>(string id) where T : UnityEngine.Object => UnityEngine.Object.Instantiate((T)AssetAdapter.Take(id, typeof(T)));