Files
2026-06-04 11:42:34 +02:00

378 lines
13 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine.Internal;
using UnityEngine.Scripting;
using UnityEngineInternal;
namespace UnityEngine
{
// Token: 0x02000012 RID: 18
public sealed class AssetBundle : Object
{
// Token: 0x06000178 RID: 376
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void UnloadAllAssetBundles(bool unloadAllObjects);
// Token: 0x06000179 RID: 377 RVA: 0x00004B84 File Offset: 0x00002D84
public static IEnumerable<AssetBundle> GetAllLoadedAssetBundles()
{
return AssetBundle.GetAllLoadedAssetBundles_Internal();
}
// Token: 0x0600017A RID: 378
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern AssetBundle[] GetAllLoadedAssetBundles_Internal();
// Token: 0x0600017B RID: 379
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern AssetBundleCreateRequest LoadFromFileAsync(string path, [DefaultValue("0")] uint crc, [DefaultValue("0")] ulong offset);
// Token: 0x0600017C RID: 380 RVA: 0x00004BA0 File Offset: 0x00002DA0
[ExcludeFromDocs]
public static AssetBundleCreateRequest LoadFromFileAsync(string path, uint crc)
{
ulong num = 0UL;
return AssetBundle.LoadFromFileAsync(path, crc, num);
}
// Token: 0x0600017D RID: 381 RVA: 0x00004BC0 File Offset: 0x00002DC0
[ExcludeFromDocs]
public static AssetBundleCreateRequest LoadFromFileAsync(string path)
{
ulong num = 0UL;
uint num2 = 0U;
return AssetBundle.LoadFromFileAsync(path, num2, num);
}
// Token: 0x0600017E RID: 382
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern AssetBundle LoadFromFile(string path, [DefaultValue("0")] uint crc, [DefaultValue("0")] ulong offset);
// Token: 0x0600017F RID: 383 RVA: 0x00004BE4 File Offset: 0x00002DE4
[ExcludeFromDocs]
public static AssetBundle LoadFromFile(string path, uint crc)
{
ulong num = 0UL;
return AssetBundle.LoadFromFile(path, crc, num);
}
// Token: 0x06000180 RID: 384 RVA: 0x00004C04 File Offset: 0x00002E04
[ExcludeFromDocs]
public static AssetBundle LoadFromFile(string path)
{
ulong num = 0UL;
uint num2 = 0U;
return AssetBundle.LoadFromFile(path, num2, num);
}
// Token: 0x06000181 RID: 385
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern AssetBundleCreateRequest LoadFromMemoryAsync(byte[] binary, [DefaultValue("0")] uint crc);
// Token: 0x06000182 RID: 386 RVA: 0x00004C28 File Offset: 0x00002E28
[ExcludeFromDocs]
public static AssetBundleCreateRequest LoadFromMemoryAsync(byte[] binary)
{
uint num = 0U;
return AssetBundle.LoadFromMemoryAsync(binary, num);
}
// Token: 0x06000183 RID: 387
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern AssetBundle LoadFromMemory(byte[] binary, [DefaultValue("0")] uint crc);
// Token: 0x06000184 RID: 388 RVA: 0x00004C48 File Offset: 0x00002E48
[ExcludeFromDocs]
public static AssetBundle LoadFromMemory(byte[] binary)
{
uint num = 0U;
return AssetBundle.LoadFromMemory(binary, num);
}
// Token: 0x17000032 RID: 50
// (get) Token: 0x06000185 RID: 389
public extern Object mainAsset
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x17000033 RID: 51
// (get) Token: 0x06000186 RID: 390
public extern bool isStreamedSceneAssetBundle
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x06000187 RID: 391
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool Contains(string name);
// Token: 0x06000188 RID: 392 RVA: 0x00004C68 File Offset: 0x00002E68
[Obsolete("Method Load has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAsset instead and check the documentation for details.", true)]
public Object Load(string name)
{
return null;
}
// Token: 0x06000189 RID: 393 RVA: 0x00004C80 File Offset: 0x00002E80
[Obsolete("Method Load has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAsset instead and check the documentation for details.", true)]
public T Load<T>(string name) where T : Object
{
return (T)((object)null);
}
// Token: 0x0600018A RID: 394
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
[Obsolete("Method Load has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAsset instead and check the documentation for details.", true)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern Object Load(string name, Type type);
// Token: 0x0600018B RID: 395
[Obsolete("Method LoadAsync has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAssetAsync instead and check the documentation for details.", true)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern AssetBundleRequest LoadAsync(string name, Type type);
// Token: 0x0600018C RID: 396
[Obsolete("Method LoadAll has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAllAssets instead and check the documentation for details.", true)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern Object[] LoadAll(Type type);
// Token: 0x0600018D RID: 397 RVA: 0x00004C9C File Offset: 0x00002E9C
[Obsolete("Method LoadAll has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAllAssets instead and check the documentation for details.", true)]
public Object[] LoadAll()
{
return null;
}
// Token: 0x0600018E RID: 398 RVA: 0x00004CB4 File Offset: 0x00002EB4
[Obsolete("Method LoadAll has been deprecated. Script updater cannot update it as the loading behaviour has changed. Please use LoadAllAssets instead and check the documentation for details.", true)]
public T[] LoadAll<T>() where T : Object
{
return null;
}
// Token: 0x0600018F RID: 399 RVA: 0x00004CCC File Offset: 0x00002ECC
public Object LoadAsset(string name)
{
return this.LoadAsset(name, typeof(Object));
}
// Token: 0x06000190 RID: 400 RVA: 0x00004CF4 File Offset: 0x00002EF4
public T LoadAsset<T>(string name) where T : Object
{
return (T)((object)this.LoadAsset(name, typeof(T)));
}
// Token: 0x06000191 RID: 401 RVA: 0x00004D20 File Offset: 0x00002F20
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
public Object LoadAsset(string name, Type type)
{
if (name == null)
{
throw new NullReferenceException("The input asset name cannot be null.");
}
if (name.Length == 0)
{
throw new ArgumentException("The input asset name cannot be empty.");
}
if (type == null)
{
throw new NullReferenceException("The input type cannot be null.");
}
return this.LoadAsset_Internal(name, type);
}
// Token: 0x06000192 RID: 402
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Object LoadAsset_Internal(string name, Type type);
// Token: 0x06000193 RID: 403 RVA: 0x00004D78 File Offset: 0x00002F78
public AssetBundleRequest LoadAssetAsync(string name)
{
return this.LoadAssetAsync(name, typeof(Object));
}
// Token: 0x06000194 RID: 404 RVA: 0x00004DA0 File Offset: 0x00002FA0
public AssetBundleRequest LoadAssetAsync<T>(string name)
{
return this.LoadAssetAsync(name, typeof(T));
}
// Token: 0x06000195 RID: 405 RVA: 0x00004DC8 File Offset: 0x00002FC8
public AssetBundleRequest LoadAssetAsync(string name, Type type)
{
if (name == null)
{
throw new NullReferenceException("The input asset name cannot be null.");
}
if (name.Length == 0)
{
throw new ArgumentException("The input asset name cannot be empty.");
}
if (type == null)
{
throw new NullReferenceException("The input type cannot be null.");
}
return this.LoadAssetAsync_Internal(name, type);
}
// Token: 0x06000196 RID: 406
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern AssetBundleRequest LoadAssetAsync_Internal(string name, Type type);
// Token: 0x06000197 RID: 407 RVA: 0x00004E20 File Offset: 0x00003020
public Object[] LoadAssetWithSubAssets(string name)
{
return this.LoadAssetWithSubAssets(name, typeof(Object));
}
// Token: 0x06000198 RID: 408 RVA: 0x00004E48 File Offset: 0x00003048
public T[] LoadAssetWithSubAssets<T>(string name) where T : Object
{
return Resources.ConvertObjects<T>(this.LoadAssetWithSubAssets(name, typeof(T)));
}
// Token: 0x06000199 RID: 409 RVA: 0x00004E74 File Offset: 0x00003074
public Object[] LoadAssetWithSubAssets(string name, Type type)
{
if (name == null)
{
throw new NullReferenceException("The input asset name cannot be null.");
}
if (name.Length == 0)
{
throw new ArgumentException("The input asset name cannot be empty.");
}
if (type == null)
{
throw new NullReferenceException("The input type cannot be null.");
}
return this.LoadAssetWithSubAssets_Internal(name, type);
}
// Token: 0x0600019A RID: 410
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern Object[] LoadAssetWithSubAssets_Internal(string name, Type type);
// Token: 0x0600019B RID: 411 RVA: 0x00004ECC File Offset: 0x000030CC
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name)
{
return this.LoadAssetWithSubAssetsAsync(name, typeof(Object));
}
// Token: 0x0600019C RID: 412 RVA: 0x00004EF4 File Offset: 0x000030F4
public AssetBundleRequest LoadAssetWithSubAssetsAsync<T>(string name)
{
return this.LoadAssetWithSubAssetsAsync(name, typeof(T));
}
// Token: 0x0600019D RID: 413 RVA: 0x00004F1C File Offset: 0x0000311C
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name, Type type)
{
if (name == null)
{
throw new NullReferenceException("The input asset name cannot be null.");
}
if (name.Length == 0)
{
throw new ArgumentException("The input asset name cannot be empty.");
}
if (type == null)
{
throw new NullReferenceException("The input type cannot be null.");
}
return this.LoadAssetWithSubAssetsAsync_Internal(name, type);
}
// Token: 0x0600019E RID: 414
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern AssetBundleRequest LoadAssetWithSubAssetsAsync_Internal(string name, Type type);
// Token: 0x0600019F RID: 415 RVA: 0x00004F74 File Offset: 0x00003174
public Object[] LoadAllAssets()
{
return this.LoadAllAssets(typeof(Object));
}
// Token: 0x060001A0 RID: 416 RVA: 0x00004F9C File Offset: 0x0000319C
public T[] LoadAllAssets<T>() where T : Object
{
return Resources.ConvertObjects<T>(this.LoadAllAssets(typeof(T)));
}
// Token: 0x060001A1 RID: 417 RVA: 0x00004FC8 File Offset: 0x000031C8
public Object[] LoadAllAssets(Type type)
{
if (type == null)
{
throw new NullReferenceException("The input type cannot be null.");
}
return this.LoadAssetWithSubAssets_Internal("", type);
}
// Token: 0x060001A2 RID: 418 RVA: 0x00004FFC File Offset: 0x000031FC
public AssetBundleRequest LoadAllAssetsAsync()
{
return this.LoadAllAssetsAsync(typeof(Object));
}
// Token: 0x060001A3 RID: 419 RVA: 0x00005024 File Offset: 0x00003224
public AssetBundleRequest LoadAllAssetsAsync<T>()
{
return this.LoadAllAssetsAsync(typeof(T));
}
// Token: 0x060001A4 RID: 420 RVA: 0x0000504C File Offset: 0x0000324C
public AssetBundleRequest LoadAllAssetsAsync(Type type)
{
if (type == null)
{
throw new NullReferenceException("The input type cannot be null.");
}
return this.LoadAssetWithSubAssetsAsync_Internal("", type);
}
// Token: 0x060001A5 RID: 421
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void Unload(bool unloadAllLoadedObjects);
// Token: 0x060001A6 RID: 422 RVA: 0x00005080 File Offset: 0x00003280
[Obsolete("This method is deprecated. Use GetAllAssetNames() instead.")]
public string[] AllAssetNames()
{
return this.GetAllAssetNames();
}
// Token: 0x060001A7 RID: 423
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern string[] GetAllAssetNames();
// Token: 0x060001A8 RID: 424
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern string[] GetAllScenePaths();
}
}