| | |
| | | } |
| | | #endif |
| | | |
| | | public T LoadAsset<T> (string directory, string name, bool needExt = true) where T : UnityEngine.Object |
| | | //needExt 是否需要函数内部添加后缀 |
| | | public T LoadAsset<T>(string directory, string name, bool needExt = true) where T : UnityEngine.Object |
| | | { |
| | | T asset = null; |
| | | // 特殊处理 因为有一层图集的关系 directory要传入的应该是atlas的名字 |
| | |
| | | return LoadAssetInternal<T>(directory, name, needExt); |
| | | } |
| | | |
| | | //needExt 是否需要函数内部添加后缀 |
| | | private T LoadAssetInternal<T>(string directory, string name, bool needExt = true) where T : UnityEngine.Object |
| | | { |
| | | T asset = null; |