C# Class KEngine.KWWWLoader

Load www, A wrapper of WWW.
Inheritance: AbstractResourceLoader
显示文件 Open project: mr-kelly/KEngine Class Usage Examples

Public Properties

Property Type Description
BeginLoadTime float
FinishLoadTime float
Www UnityEngine.WWW

Public Methods

Method Description
Load ( string url, LoaderDelgate callback = null ) : KWWWLoader

Use this to directly load WWW by Callback or Coroutine, pass a full URL. A wrapper of Unity's WWW class.

Protected Methods

Method Description
DoDispose ( ) : void
Init ( string url ) : void
OnFinish ( object resultObj ) : void
StartLoad ( ) : void
WWWLoaderMonitorCoroutine ( ) : IEnumerator

监视器协程 超过最大WWWLoader时,挂起~ 后来的新loader会被优先加载

Private Methods

Method Description
CoLoad ( string url ) : IEnumerator

协和加载Assetbundle,加载完后执行callback

Method Details

DoDispose() protected method

protected DoDispose ( ) : void
return void

Init() protected method

protected Init ( string url ) : void
url string
return void

Load() public static method

Use this to directly load WWW by Callback or Coroutine, pass a full URL. A wrapper of Unity's WWW class.
public static Load ( string url, LoaderDelgate callback = null ) : KWWWLoader
url string
callback LoaderDelgate
return KWWWLoader

OnFinish() protected method

protected OnFinish ( object resultObj ) : void
resultObj object
return void

StartLoad() protected method

protected StartLoad ( ) : void
return void

WWWLoaderMonitorCoroutine() protected static method

监视器协程 超过最大WWWLoader时,挂起~ 后来的新loader会被优先加载
protected static WWWLoaderMonitorCoroutine ( ) : IEnumerator
return IEnumerator

Property Details

BeginLoadTime public_oe property

public float BeginLoadTime
return float

FinishLoadTime public_oe property

public float FinishLoadTime
return float

Www public_oe property

public WWW,UnityEngine Www
return UnityEngine.WWW