Show / Hide Table of Contents

Class AssetBundle

Inheritance
Object
Object
AssetBundle
Inherited Members
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class AssetBundle : Object

Properties

isStreamedSceneAssetBundle

Declaration
public bool isStreamedSceneAssetBundle { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

mainAsset

Declaration
[Obsolete("mainAsset has been made obsolete. Please use the new AssetBundle build system introduced in 5.0 and check BuildAssetBundles documentation for details.")]
public Object mainAsset { get; }
Property Value
Type Description
Object

Methods

| Improve this Doc View Source

AllAssetNames()

Declaration
[Obsolete("This method is deprecated.Use GetAllAssetNames() instead.", false)]
public string[] AllAssetNames()
Returns
Type Description
String[]

Contains(String)

Declaration
public bool Contains(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Boolean

GetAllAssetNames()

Declaration
public string[] GetAllAssetNames()
Returns
Type Description
String[]
| Improve this Doc View Source

GetAllLoadedAssetBundles()

Declaration
public static IEnumerable<AssetBundle> GetAllLoadedAssetBundles()
Returns
Type Description
IEnumerable<AssetBundle>

GetAllScenePaths()

Declaration
public string[] GetAllScenePaths()
Returns
Type Description
String[]
| Improve this Doc View Source

LoadAllAssets()

Declaration
public Object[] LoadAllAssets()
Returns
Type Description
Object[]
| Improve this Doc View Source

LoadAllAssets(Type)

Declaration
public Object[] LoadAllAssets(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
Object[]
| Improve this Doc View Source

LoadAllAssets<T>()

Declaration
public T[] LoadAllAssets<T>()
    where T : Object
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAllAssetsAsync()

Declaration
public AssetBundleRequest LoadAllAssetsAsync()
Returns
Type Description
AssetBundleRequest
| Improve this Doc View Source

LoadAllAssetsAsync(Type)

Declaration
public AssetBundleRequest LoadAllAssetsAsync(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
AssetBundleRequest
| Improve this Doc View Source

LoadAllAssetsAsync<T>()

Declaration
public AssetBundleRequest LoadAllAssetsAsync<T>()
Returns
Type Description
AssetBundleRequest
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAsset(String)

Declaration
public Object LoadAsset(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Object
| Improve this Doc View Source

LoadAsset(String, Type)

Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
public Object LoadAsset(string name, Type type)
Parameters
Type Name Description
String name
Type type
Returns
Type Description
Object
| Improve this Doc View Source

LoadAsset<T>(String)

Declaration
public T LoadAsset<T>(string name)
    where T : Object
Parameters
Type Name Description
String name
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAssetAsync(String)

Declaration
public AssetBundleRequest LoadAssetAsync(string name)
Parameters
Type Name Description
String name
Returns
Type Description
AssetBundleRequest
| Improve this Doc View Source

LoadAssetAsync(String, Type)

Declaration
public AssetBundleRequest LoadAssetAsync(string name, Type type)
Parameters
Type Name Description
String name
Type type
Returns
Type Description
AssetBundleRequest
| Improve this Doc View Source

LoadAssetAsync<T>(String)

Declaration
public AssetBundleRequest LoadAssetAsync<T>(string name)
Parameters
Type Name Description
String name
Returns
Type Description
AssetBundleRequest
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAssetWithSubAssets(String)

Declaration
public Object[] LoadAssetWithSubAssets(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Object[]
| Improve this Doc View Source

LoadAssetWithSubAssets(String, Type)

Declaration
public Object[] LoadAssetWithSubAssets(string name, Type type)
Parameters
Type Name Description
String name
Type type
Returns
Type Description
Object[]
| Improve this Doc View Source

LoadAssetWithSubAssets<T>(String)

Declaration
public T[] LoadAssetWithSubAssets<T>(string name)
    where T : Object
Parameters
Type Name Description
String name
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAssetWithSubAssetsAsync(String)

Declaration
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name)
Parameters
Type Name Description
String name
Returns
Type Description
AssetBundleRequest
| Improve this Doc View Source

LoadAssetWithSubAssetsAsync(String, Type)

Declaration
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name, Type type)
Parameters
Type Name Description
String name
Type type
Returns
Type Description
AssetBundleRequest
| Improve this Doc View Source

LoadAssetWithSubAssetsAsync<T>(String)

Declaration
public AssetBundleRequest LoadAssetWithSubAssetsAsync<T>(string name)
Parameters
Type Name Description
String name
Returns
Type Description
AssetBundleRequest
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadFromFile(String)

Declaration
public static AssetBundle LoadFromFile(string path)
Parameters
Type Name Description
String path
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromFile(String, UInt32)

Declaration
public static AssetBundle LoadFromFile(string path, uint crc)
Parameters
Type Name Description
String path
UInt32 crc
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromFile(String, UInt32, UInt64)

Declaration
public static AssetBundle LoadFromFile(string path, uint crc, ulong offset)
Parameters
Type Name Description
String path
UInt32 crc
UInt64 offset
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromFileAsync(String)

Declaration
public static AssetBundleCreateRequest LoadFromFileAsync(string path)
Parameters
Type Name Description
String path
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromFileAsync(String, UInt32)

Declaration
public static AssetBundleCreateRequest LoadFromFileAsync(string path, uint crc)
Parameters
Type Name Description
String path
UInt32 crc
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromFileAsync(String, UInt32, UInt64)

Declaration
public static AssetBundleCreateRequest LoadFromFileAsync(string path, uint crc, ulong offset)
Parameters
Type Name Description
String path
UInt32 crc
UInt64 offset
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromMemory(Byte[])

Declaration
public static AssetBundle LoadFromMemory(byte[] binary)
Parameters
Type Name Description
Byte[] binary
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromMemory(Byte[], UInt32)

Declaration
public static AssetBundle LoadFromMemory(byte[] binary, uint crc)
Parameters
Type Name Description
Byte[] binary
UInt32 crc
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromMemoryAsync(Byte[])

Declaration
public static AssetBundleCreateRequest LoadFromMemoryAsync(byte[] binary)
Parameters
Type Name Description
Byte[] binary
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromMemoryAsync(Byte[], UInt32)

Declaration
public static AssetBundleCreateRequest LoadFromMemoryAsync(byte[] binary, uint crc)
Parameters
Type Name Description
Byte[] binary
UInt32 crc
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromStream(Stream)

Declaration
public static AssetBundle LoadFromStream(Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromStream(Stream, UInt32)

Declaration
public static AssetBundle LoadFromStream(Stream stream, uint crc)
Parameters
Type Name Description
Stream stream
UInt32 crc
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromStream(Stream, UInt32, UInt32)

Declaration
public static AssetBundle LoadFromStream(Stream stream, uint crc, uint managedReadBufferSize)
Parameters
Type Name Description
Stream stream
UInt32 crc
UInt32 managedReadBufferSize
Returns
Type Description
AssetBundle
| Improve this Doc View Source

LoadFromStreamAsync(Stream)

Declaration
public static AssetBundleCreateRequest LoadFromStreamAsync(Stream stream)
Parameters
Type Name Description
Stream stream
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromStreamAsync(Stream, UInt32)

Declaration
public static AssetBundleCreateRequest LoadFromStreamAsync(Stream stream, uint crc)
Parameters
Type Name Description
Stream stream
UInt32 crc
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

LoadFromStreamAsync(Stream, UInt32, UInt32)

Declaration
public static AssetBundleCreateRequest LoadFromStreamAsync(Stream stream, uint crc, uint managedReadBufferSize)
Parameters
Type Name Description
Stream stream
UInt32 crc
UInt32 managedReadBufferSize
Returns
Type Description
AssetBundleCreateRequest
| Improve this Doc View Source

RecompressAssetBundleAsync(String, String, BuildCompression, UInt32, ThreadPriority)

Declaration
public static AssetBundleRecompressOperation RecompressAssetBundleAsync(string inputPath, string outputPath, BuildCompression method, uint expectedCRC = 0U, ThreadPriority priority = ThreadPriority.Low)
Parameters
Type Name Description
String inputPath
String outputPath
BuildCompression method
UInt32 expectedCRC
ThreadPriority priority
Returns
Type Description
AssetBundleRecompressOperation

Unload(Boolean)

Declaration
public void Unload(bool unloadAllLoadedObjects)
Parameters
Type Name Description
Boolean unloadAllLoadedObjects

UnloadAllAssetBundles(Boolean)

Declaration
public static void UnloadAllAssetBundles(bool unloadAllObjects)
Parameters
Type Name Description
Boolean unloadAllObjects

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX