Пример #1
0
        public static T LoadAsset <T>(string uri, int separateIndex = -1) where T : UnityEngine.Object
        {
            var tuple = AssetBundleHolder.Extract(uri, separateIndex);

            return(AssetBundleHolder.LoadAsset <T>(tuple._1, tuple._2));
        }
Пример #2
0
        public static UnityEngine.Object LoadAsset(string uri, Type type, int separateIndex = -1)
        {
            var tuple = AssetBundleHolder.Extract(uri, separateIndex);

            return(AssetBundleHolder.LoadAsset(tuple._1, tuple._2, type));
        }