C# Class Tangzx.ABSystem.AssetBundleManager

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: tangzx/ABSystem Class Usage Examples

Méthodes publiques

Свойство Type Description
Instance AssetBundleManager
NAME string
enableLog bool
onProgress LoadProgressHandler
pathResolver AssetBundlePathResolver
version System.Version

Méthodes publiques

Méthode Description
AssetBundleManager ( ) : System
GetAssetBundleFullName ( string shortFileName ) : string

通过ShortName获取FullName

GetBundleInfo ( string key ) : AssetBundleInfo
Init ( System.Action callback ) : void
Init ( Stream depStream, System.Action callback ) : void
Load ( string path, LoadAssetCompleteHandler handler = null ) : AssetBundleLoader

用默认优先级为0的值加载

Load ( string path, int prority, LoadAssetCompleteHandler handler = null ) : AssetBundleLoader

通过一个路径加载ab

RemoveAll ( ) : void
RemoveBundle ( string key ) : void
UnloadUnusedBundle ( bool force = false ) : void

卸载不用的

Méthodes protégées

Méthode Description
Awake ( ) : void
CreateLoader ( ) : AssetBundleLoader

Private Methods

Méthode Description
CheckNewLoaders ( ) : void
CheckQueue ( ) : void
CheckUnusedBundle ( ) : void
CreateBundleInfo ( AssetBundleLoader loader, AssetBundleInfo abi = null, AssetBundle assetBundle = null ) : AssetBundleInfo
CreateLoader ( string abFileName, string oriName = null ) : AssetBundleLoader
Enqueue ( AssetBundleLoader loader ) : void

请求加载Bundle,这里统一分配加载时机,防止加载太卡

InitComplete ( ) : void
LoadBundle ( AssetBundleLoader loader ) : void
LoadComplete ( AssetBundleLoader loader ) : void
LoadDepInfo ( ) : IEnumerator
LoadError ( AssetBundleLoader loader ) : void
OnDestroy ( ) : void
RemoveBundleInfo ( AssetBundleInfo abi ) : void
Update ( ) : void

Method Details

AssetBundleManager() public méthode

public AssetBundleManager ( ) : System
Résultat System

Awake() protected méthode

protected Awake ( ) : void
Résultat void

CreateLoader() protected méthode

protected CreateLoader ( ) : AssetBundleLoader
Résultat AssetBundleLoader

GetAssetBundleFullName() public méthode

通过ShortName获取FullName
public GetAssetBundleFullName ( string shortFileName ) : string
shortFileName string
Résultat string

GetBundleInfo() public méthode

public GetBundleInfo ( string key ) : AssetBundleInfo
key string
Résultat AssetBundleInfo

Init() public méthode

public Init ( System.Action callback ) : void
callback System.Action
Résultat void

Init() public méthode

public Init ( Stream depStream, System.Action callback ) : void
depStream Stream
callback System.Action
Résultat void

Load() public méthode

用默认优先级为0的值加载
public Load ( string path, LoadAssetCompleteHandler handler = null ) : AssetBundleLoader
path string 路径
handler LoadAssetCompleteHandler 回调
Résultat AssetBundleLoader

Load() public méthode

通过一个路径加载ab
public Load ( string path, int prority, LoadAssetCompleteHandler handler = null ) : AssetBundleLoader
path string 路径
prority int 优先级
handler LoadAssetCompleteHandler 回调
Résultat AssetBundleLoader

RemoveAll() public méthode

public RemoveAll ( ) : void
Résultat void

RemoveBundle() public méthode

public RemoveBundle ( string key ) : void
key string
Résultat void

UnloadUnusedBundle() public méthode

卸载不用的
public UnloadUnusedBundle ( bool force = false ) : void
force bool
Résultat void

Property Details

Instance public_oe static_oe property

public static AssetBundleManager,Tangzx.ABSystem Instance
Résultat AssetBundleManager

NAME public_oe static_oe property

public static string NAME
Résultat string

enableLog public_oe static_oe property

public static bool enableLog
Résultat bool

onProgress public_oe property

进度
public LoadProgressHandler onProgress
Résultat LoadProgressHandler

pathResolver public_oe property

public AssetBundlePathResolver,Tangzx.ABSystem pathResolver
Résultat AssetBundlePathResolver

version public_oe static_oe property

public static Version,System version
Résultat System.Version