C# 클래스 Tangzx.ABSystem.AssetBundleManager

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: tangzx/ABSystem 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Instance AssetBundleManager
NAME string
enableLog bool
onProgress LoadProgressHandler
pathResolver AssetBundlePathResolver
version System.Version

공개 메소드들

메소드 설명
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

卸载不用的

보호된 메소드들

메소드 설명
Awake ( ) : void
CreateLoader ( ) : AssetBundleLoader

비공개 메소드들

메소드 설명
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

메소드 상세

AssetBundleManager() 공개 메소드

public AssetBundleManager ( ) : System
리턴 System

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

CreateLoader() 보호된 메소드

protected CreateLoader ( ) : AssetBundleLoader
리턴 AssetBundleLoader

GetAssetBundleFullName() 공개 메소드

通过ShortName获取FullName
public GetAssetBundleFullName ( string shortFileName ) : string
shortFileName string
리턴 string

GetBundleInfo() 공개 메소드

public GetBundleInfo ( string key ) : AssetBundleInfo
key string
리턴 AssetBundleInfo

Init() 공개 메소드

public Init ( System.Action callback ) : void
callback System.Action
리턴 void

Init() 공개 메소드

public Init ( Stream depStream, System.Action callback ) : void
depStream Stream
callback System.Action
리턴 void

Load() 공개 메소드

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

Load() 공개 메소드

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

RemoveAll() 공개 메소드

public RemoveAll ( ) : void
리턴 void

RemoveBundle() 공개 메소드

public RemoveBundle ( string key ) : void
key string
리턴 void

UnloadUnusedBundle() 공개 메소드

卸载不用的
public UnloadUnusedBundle ( bool force = false ) : void
force bool
리턴 void

프로퍼티 상세

Instance 공개적으로 정적으로 프로퍼티

public static AssetBundleManager,Tangzx.ABSystem Instance
리턴 AssetBundleManager

NAME 공개적으로 정적으로 프로퍼티

public static string NAME
리턴 string

enableLog 공개적으로 정적으로 프로퍼티

public static bool enableLog
리턴 bool

onProgress 공개적으로 프로퍼티

进度
public LoadProgressHandler onProgress
리턴 LoadProgressHandler

pathResolver 공개적으로 프로퍼티

public AssetBundlePathResolver,Tangzx.ABSystem pathResolver
리턴 AssetBundlePathResolver

version 공개적으로 정적으로 프로퍼티

public static Version,System version
리턴 System.Version