Class AssetBundle
Assembly: UnityEngine.dll
Syntax
public class AssetBundle : Object
Properties
isStreamedSceneAssetBundle
Declaration
public bool isStreamedSceneAssetBundle { get; }
Property Value
|
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
Methods
|
Improve this Doc
View Source
AllAssetNames()
Declaration
[Obsolete("This method is deprecated.Use GetAllAssetNames() instead.", false)]
public string[] AllAssetNames()
Returns
Contains(String)
Declaration
public bool Contains(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetAllAssetNames()
Declaration
public string[] GetAllAssetNames()
Returns
|
Improve this Doc
View Source
GetAllLoadedAssetBundles()
Declaration
public static IEnumerable<AssetBundle> GetAllLoadedAssetBundles()
Returns
GetAllScenePaths()
Declaration
public string[] GetAllScenePaths()
Returns
|
Improve this Doc
View Source
LoadAllAssets()
Declaration
public Object[] LoadAllAssets()
Returns
|
Improve this Doc
View Source
LoadAllAssets(Type)
Declaration
public Object[] LoadAllAssets(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
LoadAllAssets<T>()
Declaration
public T[] LoadAllAssets<T>()
where T : Object
Returns
Type Parameters
|
Improve this Doc
View Source
LoadAllAssetsAsync()
Declaration
public AssetBundleRequest LoadAllAssetsAsync()
Returns
|
Improve this Doc
View Source
LoadAllAssetsAsync(Type)
Declaration
public AssetBundleRequest LoadAllAssetsAsync(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
LoadAllAssetsAsync<T>()
Declaration
public AssetBundleRequest LoadAllAssetsAsync<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
LoadAsset(String)
Declaration
public Object LoadAsset(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
LoadAsset(String, Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
public Object LoadAsset(string name, Type type)
Parameters
Returns
|
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 Parameters
|
Improve this Doc
View Source
LoadAssetAsync(String)
Declaration
public AssetBundleRequest LoadAssetAsync(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
LoadAssetAsync(String, Type)
Declaration
public AssetBundleRequest LoadAssetAsync(string name, Type type)
Parameters
Returns
|
Improve this Doc
View Source
LoadAssetAsync<T>(String)
Declaration
public AssetBundleRequest LoadAssetAsync<T>(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Type Parameters
|
Improve this Doc
View Source
LoadAssetWithSubAssets(String)
Declaration
public Object[] LoadAssetWithSubAssets(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
LoadAssetWithSubAssets(String, Type)
Declaration
public Object[] LoadAssetWithSubAssets(string name, Type type)
Parameters
Returns
|
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 Parameters
|
Improve this Doc
View Source
LoadAssetWithSubAssetsAsync(String)
Declaration
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
LoadAssetWithSubAssetsAsync(String, Type)
Declaration
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name, Type type)
Parameters
Returns
|
Improve this Doc
View Source
LoadAssetWithSubAssetsAsync<T>(String)
Declaration
public AssetBundleRequest LoadAssetWithSubAssetsAsync<T>(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Type Parameters
|
Improve this Doc
View Source
LoadFromFile(String)
Declaration
public static AssetBundle LoadFromFile(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
LoadFromFile(String, UInt32)
Declaration
public static AssetBundle LoadFromFile(string path, uint crc)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromFile(String, UInt32, UInt64)
Declaration
public static AssetBundle LoadFromFile(string path, uint crc, ulong offset)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromFileAsync(String)
Declaration
public static AssetBundleCreateRequest LoadFromFileAsync(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
LoadFromFileAsync(String, UInt32)
Declaration
public static AssetBundleCreateRequest LoadFromFileAsync(string path, uint crc)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromFileAsync(String, UInt32, UInt64)
Declaration
public static AssetBundleCreateRequest LoadFromFileAsync(string path, uint crc, ulong offset)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromMemory(Byte[])
Declaration
public static AssetBundle LoadFromMemory(byte[] binary)
Parameters
Type |
Name |
Description |
Byte[] |
binary |
|
Returns
|
Improve this Doc
View Source
LoadFromMemory(Byte[], UInt32)
Declaration
public static AssetBundle LoadFromMemory(byte[] binary, uint crc)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromMemoryAsync(Byte[])
Declaration
public static AssetBundleCreateRequest LoadFromMemoryAsync(byte[] binary)
Parameters
Type |
Name |
Description |
Byte[] |
binary |
|
Returns
|
Improve this Doc
View Source
LoadFromMemoryAsync(Byte[], UInt32)
Declaration
public static AssetBundleCreateRequest LoadFromMemoryAsync(byte[] binary, uint crc)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromStream(Stream)
Declaration
public static AssetBundle LoadFromStream(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
|
Improve this Doc
View Source
LoadFromStream(Stream, UInt32)
Declaration
public static AssetBundle LoadFromStream(Stream stream, uint crc)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromStream(Stream, UInt32, UInt32)
Declaration
public static AssetBundle LoadFromStream(Stream stream, uint crc, uint managedReadBufferSize)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromStreamAsync(Stream)
Declaration
public static AssetBundleCreateRequest LoadFromStreamAsync(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
|
Improve this Doc
View Source
LoadFromStreamAsync(Stream, UInt32)
Declaration
public static AssetBundleCreateRequest LoadFromStreamAsync(Stream stream, uint crc)
Parameters
Returns
|
Improve this Doc
View Source
LoadFromStreamAsync(Stream, UInt32, UInt32)
Declaration
public static AssetBundleCreateRequest LoadFromStreamAsync(Stream stream, uint crc, uint managedReadBufferSize)
Parameters
Returns
|
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
Returns
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