C# Class KEngine.KAssetBundleParser

AssetBundle字节解析器
Show file Open project: mr-kelly/KEngine Class Usage Examples

Public Properties

Property Type Description
Bundle UnityEngine.AssetBundle
BundleBytesFilter Func
IsFinished bool
Mode CAssetBundleParserMode
RelativePath string

Public Methods

Method Description
Dispose ( bool unloadAllAssets ) : void
KAssetBundleParser ( string relativePath, byte bytes, Action callback = null ) : System

Private Methods

Method Description
DefaultParseAb ( string relativePath, byte bytes ) : byte[]
DisposeBundle ( ) : void
OnFinish ( AssetBundle bundle ) : void
WaitCreateAssetBundle ( AssetBundleCreateRequest req ) : IEnumerator

Method Details

Dispose() public method

public Dispose ( bool unloadAllAssets ) : void
unloadAllAssets bool
return void

KAssetBundleParser() public method

public KAssetBundleParser ( string relativePath, byte bytes, Action callback = null ) : System
relativePath string
bytes byte
callback Action
return System

Property Details

Bundle public property

public AssetBundle,UnityEngine Bundle
return UnityEngine.AssetBundle

BundleBytesFilter public static property

public static Func BundleBytesFilter
return Func

IsFinished public property

public bool IsFinished
return bool

Mode public static property

是异步解析,还是同步解析
public static CAssetBundleParserMode Mode
return CAssetBundleParserMode

RelativePath public property

public string RelativePath
return string