C# Class KEngine.ResourceDep.ResourceDepUtils

ResourceDep资源依赖系统主入口
Afficher le fichier Open project: mr-kelly/KEngine Class Usage Examples

Méthodes publiques

Méthode Description
GetBuildPath ( string relativeAssetPath ) : string

将返回具体的资源路径,会把其余目录名的首字母合并在一起

LoadAssetBundleAsync ( string relativePath ) : ResourceDepRequest

异步加载Asset Bundle,自动处理依赖

LoadAssetBundleSync ( string relativePath ) : Object

同步加载AssetBundle

LoadLevelAdditiveAsync ( string path ) : ResourceDepRequest

暂时不用

RefreshAllMaterialsShaders ( ) : void

是否完成shaders加载?

检查如果Shader对象还没有加载,旧加载

编辑器模式下,对全部GameObject刷新一下Material

Private Methods

Méthode Description
CoLoadAssetBundleAsync ( string relativePath, ResourceDepRequest request ) : IEnumerator
CoLoadLevelAdditiveAsync ( string path, ResourceDepRequest req ) : IEnumerator

暂时不用,交给KResources

GetManifestList ( byte manifestBytes ) : string[]

自动将字节码转换字符串,在分割CRLF字符,获取依赖文本列表

Method Details

GetBuildPath() public static méthode

将返回具体的资源路径,会把其余目录名的首字母合并在一起
public static GetBuildPath ( string relativeAssetPath ) : string
relativeAssetPath string
Résultat string

LoadAssetBundleAsync() public static méthode

异步加载Asset Bundle,自动处理依赖
public static LoadAssetBundleAsync ( string relativePath ) : ResourceDepRequest
relativePath string
Résultat ResourceDepRequest

LoadAssetBundleSync() public static méthode

同步加载AssetBundle
public static LoadAssetBundleSync ( string relativePath ) : Object
relativePath string
Résultat UnityEngine.Object

LoadLevelAdditiveAsync() public static méthode

暂时不用
public static LoadLevelAdditiveAsync ( string path ) : ResourceDepRequest
path string
Résultat ResourceDepRequest

RefreshAllMaterialsShaders() public static méthode

是否完成shaders加载? 检查如果Shader对象还没有加载,旧加载 编辑器模式下,对全部GameObject刷新一下Material
public static RefreshAllMaterialsShaders ( ) : void
Résultat void