public static AssetBundleRequest LoadAsync(string path, Type type)
        {
            AssetBundleRequest result;

            Bundling.LoadAsync(path, type, out result);
            return(result);
        }
        // Token: 0x060005EB RID: 1515 RVA: 0x0001C89C File Offset: 0x0001AA9C
        public static T Load <T>(string path) where T : Object
        {
            T result;

            Bundling.Load <T>(path, out result);
            return(result);
        }
        // Token: 0x060005E9 RID: 1513 RVA: 0x0001C844 File Offset: 0x0001AA44
        public static Object Load(string path, Type type)
        {
            Object result;

            Bundling.Load(path, type, out result);
            return(result);
        }
Example #4
0
        public static T Load <T>(string path)
            where T : UnityEngine.Object
        {
            T t;

            Bundling.Load <T>(path, out t);
            return(t);
        }
        // Token: 0x060005EA RID: 1514 RVA: 0x0001C85C File Offset: 0x0001AA5C
        public static bool Load <T>(string path, out T asset) where T : Object
        {
            Object @object;

            if (Bundling.Load(path, typeof(T), out @object))
            {
                asset = (T)((object)@object);
                return(true);
            }
            asset = (T)((object)null);
            return(false);
        }
 // Token: 0x060005F3 RID: 1523 RVA: 0x0001CA0C File Offset: 0x0001AC0C
 public static Object[] LoadAll(Type type)
 {
     if (type == typeof(Object))
     {
         return(Bundling.LoadAll());
     }
     if (!Bundling.HasLoadedBundleMap)
     {
         throw new InvalidOperationException("Bundles were not loaded");
     }
     return(new List <Object>(Bundling.Map.Assets.LoadAll(type)).ToArray());
 }
Example #7
0
 public static bool Load <T>(string path, out T asset)
     where T : UnityEngine.Object
 {
     UnityEngine.Object obj;
     if (Bundling.Load(path, typeof(T), out obj))
     {
         asset = (T)obj;
         return(true);
     }
     asset = (T)null;
     return(false);
 }
        // Token: 0x060005EC RID: 1516 RVA: 0x0001C8B4 File Offset: 0x0001AAB4
        public static bool Load <T>(string path, Type type, out T asset) where T : Object
        {
            if (!typeof(T).IsAssignableFrom(type))
            {
                throw new ArgumentException(string.Format("The given type ({1}) cannot cast to {0}", typeof(T), type), "type");
            }
            Object @object;

            if (Bundling.Load(path, type, out @object))
            {
                asset = (T)((object)@object);
                return(true);
            }
            asset = (T)((object)null);
            return(false);
        }
Example #9
0
 public static bool Load <T>(string path, Type type, out T asset)
     where T : UnityEngine.Object
 {
     UnityEngine.Object obj;
     if (!typeof(T).IsAssignableFrom(type))
     {
         throw new ArgumentException(string.Format("The given type ({1}) cannot cast to {0}", typeof(T), type), "type");
     }
     if (Bundling.Load(path, type, out obj))
     {
         asset = (T)obj;
         return(true);
     }
     asset = (T)null;
     return(false);
 }
 public static AssetBundleRequest LoadAsync <T>(string path)
 {
     return(Bundling.LoadAsync(path, typeof(T)));
 }
 public static bool LoadAsync <T>(string path, out AssetBundleRequest request) where T : Object
 {
     return(Bundling.LoadAsync(path, typeof(T), out request));
 }
Example #12
0
 public static UnityEngine.Object Load(string path, Type type)
 {
     UnityEngine.Object obj;
     Bundling.Load(path, type, out obj);
     return(obj);
 }