C# 클래스 KEngine.ResourceDep.ResourceDepUtils

ResourceDep资源依赖系统主入口
파일 보기 프로젝트 열기: mr-kelly/KEngine 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
CoLoadAssetBundleAsync ( string relativePath, ResourceDepRequest request ) : IEnumerator
CoLoadLevelAdditiveAsync ( string path, ResourceDepRequest req ) : IEnumerator

暂时不用,交给KResources

GetManifestList ( byte manifestBytes ) : string[]

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

메소드 상세

GetBuildPath() 공개 정적인 메소드

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

LoadAssetBundleAsync() 공개 정적인 메소드

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

LoadAssetBundleSync() 공개 정적인 메소드

同步加载AssetBundle
public static LoadAssetBundleSync ( string relativePath ) : Object
relativePath string
리턴 UnityEngine.Object

LoadLevelAdditiveAsync() 공개 정적인 메소드

暂时不用
public static LoadLevelAdditiveAsync ( string path ) : ResourceDepRequest
path string
리턴 ResourceDepRequest

RefreshAllMaterialsShaders() 공개 정적인 메소드

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