using System; using System.Runtime.CompilerServices; using UnityEngine.Scripting; using UnityEngineInternal; namespace UnityEngine { // Token: 0x020000AE RID: 174 public sealed class Resources { // Token: 0x06000D0E RID: 3342 RVA: 0x00012390 File Offset: 0x00010590 internal static T[] ConvertObjects(Object[] rawObjects) where T : Object { T[] array; if (rawObjects == null) { array = null; } else { T[] array2 = new T[rawObjects.Length]; for (int i = 0; i < array2.Length; i++) { array2[i] = (T)((object)rawObjects[i]); } array = array2; } return array; } // Token: 0x06000D0F RID: 3343 [TypeInferenceRule(TypeInferenceRules.ArrayOfTypeReferencedByFirstArgument)] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern Object[] FindObjectsOfTypeAll(Type type); // Token: 0x06000D10 RID: 3344 RVA: 0x000123E0 File Offset: 0x000105E0 public static T[] FindObjectsOfTypeAll() where T : Object { return Resources.ConvertObjects(Resources.FindObjectsOfTypeAll(typeof(T))); } // Token: 0x06000D11 RID: 3345 RVA: 0x0001240C File Offset: 0x0001060C public static Object Load(string path) { return Resources.Load(path, typeof(Object)); } // Token: 0x06000D12 RID: 3346 RVA: 0x00012434 File Offset: 0x00010634 public static T Load(string path) where T : Object { return (T)((object)Resources.Load(path, typeof(T))); } // Token: 0x06000D13 RID: 3347 [TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern Object Load(string path, Type systemTypeInstance); // Token: 0x06000D14 RID: 3348 RVA: 0x00012460 File Offset: 0x00010660 public static ResourceRequest LoadAsync(string path) { return Resources.LoadAsync(path, typeof(Object)); } // Token: 0x06000D15 RID: 3349 RVA: 0x00012488 File Offset: 0x00010688 public static ResourceRequest LoadAsync(string path) where T : Object { return Resources.LoadAsync(path, typeof(T)); } // Token: 0x06000D16 RID: 3350 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern ResourceRequest LoadAsync(string path, Type type); // Token: 0x06000D17 RID: 3351 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern Object[] LoadAll(string path, Type systemTypeInstance); // Token: 0x06000D18 RID: 3352 RVA: 0x000124B0 File Offset: 0x000106B0 public static Object[] LoadAll(string path) { return Resources.LoadAll(path, typeof(Object)); } // Token: 0x06000D19 RID: 3353 RVA: 0x000124D8 File Offset: 0x000106D8 public static T[] LoadAll(string path) where T : Object { return Resources.ConvertObjects(Resources.LoadAll(path, typeof(T))); } // Token: 0x06000D1A RID: 3354 [TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern Object GetBuiltinResource(Type type, string path); // Token: 0x06000D1B RID: 3355 RVA: 0x00012504 File Offset: 0x00010704 public static T GetBuiltinResource(string path) where T : Object { return (T)((object)Resources.GetBuiltinResource(typeof(T), path)); } // Token: 0x06000D1C RID: 3356 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void UnloadAsset(Object assetToUnload); // Token: 0x06000D1D RID: 3357 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern AsyncOperation UnloadUnusedAssets(); } }