프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CustomGetResourcesPath | Func |
||
DocumentResourcesPath | string | ||
LoadByQueue | bool | ||
LogLevel | int | ||
Quality | KResourceQuality | ||
ResourcePathPriorityType | KResourcePathPriorityType |
메소드 | 설명 | |
---|---|---|
Collect ( ) : void | ||
ContainsResourceUrl ( string resourceUrl ) : bool | ||
GetAppDataPath ( ) : string |
獲取app數據目錄,可寫,同Application.PersitentDataPath,但在windows平台時為了避免www類中文目錄無法讀取問題,單獨實現
|
|
GetAssetBundlePath ( string path ) : string |
统一在字符串后加上.box, 取决于配置的AssetBundle后缀
|
|
GetBuildPlatformName ( ) : string |
Different platform's assetBundles is incompatible. CosmosEngine put different platform's assetBundles in different folder. Here, get Platform name that represent the AssetBundles Folder.
|
|
GetFileProtocol ( ) : string |
On Windows, file protocol has a strange rule that has one more slash
|
|
GetResourceFullPath ( string url, bool withFileProtocol, string &fullPath, bool isLog = true ) : GetResourceFullPathType |
根据相对路径,获取到StreamingAssets完整路径,或Resources中的路径
|
|
GetResourceFullPath ( string url, bool withFileProtocol = true, bool isLog = true ) : string |
完整路径,www加载
|
|
IsStreamingAssetsExists ( string path ) : bool |
check file exists of streamingAssets. On Android will use plugin to do that.
|
|
LoadBundle ( string path, |
load asset bundle immediatly
|
|
LoadBundleAsync ( string path, |
Load Async Asset Bundle
|
|
LoadSyncFromStreamingAssets ( string path ) : byte[] |
Load file from streamingAssets. On Android will use plugin to do that.
|
|
LogLoadTime ( string resType, string resPath, System begin ) : void | ||
LogRequest ( string resType, string resPath ) : void | ||
TryGetDocumentResourceUrl ( string url, bool withFileProtocol, string &newUrl ) : bool |
可被WWW读取的Resource路径
|
|
TryGetInAppStreamingUrl ( string url, bool withFileProtocol, string &newUrl ) : bool |
(not android ) only! Android资源不在目录! Editor返回文件系统目录,运行时返回StreamingAssets目录
|
메소드 | 설명 | |
---|---|---|
Awake ( ) : void | ||
FileExistsWithDifferentCase ( string filePath ) : bool |
大小写敏感地进行文件判断, Windows Only
|
|
InitResourcePath ( ) : void |
Initialize the path of AssetBundles store place ( Maybe in PersitentDataPath or StreamingAssetsPath )
|
|
KResourceModule ( ) : System | ||
Update ( ) : void |
public static ContainsResourceUrl ( string resourceUrl ) : bool | ||
resourceUrl | string | |
리턴 | bool |
public static GetAssetBundlePath ( string path ) : string | ||
path | string | |
리턴 | string |
public static GetResourceFullPath ( string url, bool withFileProtocol, string &fullPath, bool isLog = true ) : GetResourceFullPathType | ||
url | string | |
withFileProtocol | bool | |
fullPath | string | |
isLog | bool | |
리턴 | GetResourceFullPathType |
public static GetResourceFullPath ( string url, bool withFileProtocol = true, bool isLog = true ) : string | ||
url | string | |
withFileProtocol | bool | 是否带有file://前缀 |
isLog | bool | |
리턴 | string |
public static IsStreamingAssetsExists ( string path ) : bool | ||
path | string | relative path, when file is "file:///android_asset/test.txt", the pat is "test.txt" |
리턴 | bool |
public static LoadBundle ( string path, |
||
path | string | |
callback | ||
리턴 | AbstractResourceLoader |
public static LoadBundleAsync ( string path, |
||
path | string | |
callback | cps style async | |
리턴 | AbstractResourceLoader |
public static LoadSyncFromStreamingAssets ( string path ) : byte[] | ||
path | string | relative path, when file is "file:///android_asset/test.txt", the pat is "test.txt" |
리턴 | byte[] |
public static LogLoadTime ( string resType, string resPath, System begin ) : void | ||
resType | string | |
resPath | string | |
begin | System | |
리턴 | void |
public static LogRequest ( string resType, string resPath ) : void | ||
resType | string | |
resPath | string | |
리턴 | void |
public static TryGetDocumentResourceUrl ( string url, bool withFileProtocol, string &newUrl ) : bool | ||
url | string | |
withFileProtocol | bool | 是否带有file://前缀 |
newUrl | string | |
리턴 | bool |
public static TryGetInAppStreamingUrl ( string url, bool withFileProtocol, string &newUrl ) : bool | ||
url | string | |
withFileProtocol | bool | 是否带有file://前缀 |
newUrl | string | |
리턴 | bool |
public static Func |
||
리턴 | Func |