C# Class Hugula.Loader.CRequest

Exibir arquivo Open project: tenvick/hugula Class Usage Examples

Public Properties

Property Type Description
OnComplete System.Action
OnEnd System.Action
assetType Type
async bool
data object
head object
index int
isAdditive bool
isLoadFromCacheOrDownload bool
isNormal bool
priority int
userData object

Public Methods

Method Description
CRequest ( ) : System

Request

CRequest ( string relativeUrl ) : System

加载请求

CRequest ( string relativeUrl, string assetName, Type assetType ) : System

DispatchComplete ( ) : void
DispatchEnd ( ) : void
Dispose ( ) : void
GetUDKeyURL ( CRequest req ) : string

获取key URL

Method Details

CRequest() public method

Request
public CRequest ( ) : System
return System

CRequest() public method

加载请求
public CRequest ( string relativeUrl ) : System
relativeUrl string
return System

CRequest() public method

public CRequest ( string relativeUrl, string assetName, Type assetType ) : System
relativeUrl string
assetName string 加载的资源名
assetType Type 资源类型,默认为GameObject
return System

DispatchComplete() public method

public DispatchComplete ( ) : void
return void

DispatchEnd() public method

public DispatchEnd ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetUDKeyURL() public static method

获取key URL
public static GetUDKeyURL ( CRequest req ) : string
req CRequest
return string

Property Details

OnComplete public_oe property

public Action,System OnComplete
return System.Action

OnEnd public_oe property

public Action,System OnEnd
return System.Action

assetType public_oe property

asset Type name
public Type assetType
return Type

async public_oe property

是否异步加载
public bool async
return bool

data public_oe property

加载的数据
public object data
return object

head public_oe property

加载的头信息
public object head
return object

index public_oe property

加载uri索引
public int index
return int

isAdditive public_oe property

场景加载追加模式
public bool isAdditive
return bool

isLoadFromCacheOrDownload public_oe property

www.LoadFromCacheOrDownload
public bool isLoadFromCacheOrDownload
return bool

isNormal public_oe property

是否普通加载 普通加载需要等待加载池空闲
public bool isNormal
return bool

priority public_oe property

优先等级 降序 值越大优先级越高
public int priority
return int

userData public_oe property

The user data.
public object userData
return object