Exemple #1
0
        public static AssetResolveLoader LoadAllAsset(string path, string package = null, Type type = null, AssetResolveLoader.OnLoadAssetList callback = null)
        {
            var request = AssetResolveLoader.LoadAll(path, package, type, callback, LoaderMode.Sync);

            return(request);
        }
Exemple #2
0
        /// <summary>
        /// Load Async Asset Bundle
        /// </summary>
        /// <param name="path"></param>
        /// <param name="callback">cps style async</param>
        /// <returns></returns>
        public static AssetResolveLoader LoadAssetAsync(string path, string package = null, Type type = null, AssetResolveLoader.OnLoadAsset callback = null)
        {
            var request = AssetResolveLoader.Load(path, package, type, callback);

            return(request);
        }