![]() |
CRIWARE Unity Plugin Manual
Last Updated: 2025-05-08
|
类 | |
| class | CriFsPlugin |
| CRI File System库的全局类。 更多... | |
函数 | |
| virtual void | Stop () |
| 停止异步处理。 更多... | |
| YieldInstruction | WaitForDone (MonoBehaviour mb) |
| 等待异步处理完成。 更多... | |
| override void | Stop () |
| 停止异步处理。 更多... | |
| override void | Stop () |
| 停止安装处理。 更多... | |
| override void | Stop () |
| 停止安装处理。 更多... | |
| override void | Stop () |
| 停止异步处理。 更多... | |
| static CriFsLoadFileRequest | LoadFile (string path, int readUnitSize=DefaultReadUnitSize) |
| 开始文件加载。 更多... | |
| static CriFsLoadFileRequest | LoadFile (CriFsBinder binder, string path, int readUnitSize=DefaultReadUnitSize) |
| 开始文件加载。 更多... | |
| static CriFsLoadAssetBundleRequest | LoadAssetBundle (string path, int readUnitSize=DefaultReadUnitSize) |
| 开始Asset Bundle文件的加载。 更多... | |
| static CriFsLoadAssetBundleRequest | LoadAssetBundle (CriFsBinder binder, string path, int readUnitSize=DefaultReadUnitSize) |
| 开始Asset Bundle文件的加载。 更多... | |
| static CriFsInstallRequest | Install (string srcPath, string dstPath) |
| 开始安装文件。 更多... | |
| static CriFsInstallRequest | Install (CriFsBinder srcBinder, string srcPath, string dstPath) |
| 开始安装文件。 更多... | |
| static CriFsInstallRequest | WebInstall (string srcPath, string dstPath, CriFsRequest.DoneDelegate doneDeleagate) |
| 开始安装文件。 更多... | |
| static CriFsBindRequest | BindCpk (CriFsBinder targetBinder, string srcPath) |
| 开始CPK文件Bind。 更多... | |
| static CriFsBindRequest | BindCpk (CriFsBinder targetBinder, CriFsBinder srcBinder, string srcPath) |
| 开始CPK文件Bind。 更多... | |
| static CriFsBindRequest | BindDirectory (CriFsBinder targetBinder, string srcPath) |
| 开始目录路径的Bind。 更多... | |
| static CriFsBindRequest | BindDirectory (CriFsBinder targetBinder, CriFsBinder srcBinder, string srcPath) |
| 开始目录路径的Bind。 更多... | |
| static CriFsBindRequest | BindFile (CriFsBinder targetBinder, string srcPath) |
| Bind文件。 更多... | |
| static CriFsBindRequest | BindFile (CriFsBinder targetBinder, CriFsBinder srcBinder, string srcPath) |
| 开始Bind文件。 更多... | |
| static void | SetUserAgentString (string userAgentString) |
| 指定用于HTTP请求的User-Agent字符串。 更多... | |
| static void | SetProxyServer (string proxyPath, UInt16 proxyPort) |
| 指定用于HTTP请求的代理Server。 更多... | |
| static void | SetPathSeparator (string filter) |
| 指定路径分隔符 更多... | |
变量 | |
| const int | DefaultReadUnitSize = (1024 * 1024) |
| 是各加载请求的预设读取单位大小。 更多... | |
属性 | |
| DoneDelegate | doneDelegate [get, protected set] |
| 处理完成时的委托。 更多... | |
| bool | isDone [get] |
| 是否已完成处理。 更多... | |
| string | error [get, protected set] |
| 错误信息。 更多... | |
| bool | isDisposed [get, protected set] |
| 丢弃信息。 更多... | |
| string | path [get] |
| 加载的文件的路径。 更多... | |
| byte[] | bytes [get] |
| 用于存放加载结果的缓冲区。 更多... | |
| string | path [get] |
| 用于加载Asset Bundle文件的路径。 更多... | |
| AssetBundle | assetBundle [get] |
| 是加载结果的Asset Bundle。 更多... | |
| string | sourcePath [get, protected set] |
| 安装源的文件路径。 更多... | |
| string | destinationPath [get, protected set] |
| 安装目标文件路径。 更多... | |
| float | progress [get, protected set] |
| 是安装处理的进度情况。 更多... | |
| string | path [get] |
| 要Bind的文件的路径。 更多... | |
| uint | bindId [get] |
| 用于识别Bind处理的ID。 更多... | |
CRI File System的扩展,应该从原始C#调用。
|
inlinevirtual |
|
inline |
等待异步处理完成。
在异步处理完成前,暂停协程的执行。
本函数仅可用于协程内的yield语句。
具体来说,需要按照以下格式来使用。
: // 非同期処理の開始 CriFsRequest request = CriFsUtility.?
// 非同期処理の完了まで待機 yield return request.WaitForDone(this); :
|
inlinevirtual |
|
inline |
停止安装处理。
|
inlinevirtual |
停止安装处理。
重载 CriFsRequest .
|
inlinevirtual |
|
inlinestatic |
开始文件加载。
| path | 文件路径 |
| readUnitSize | 内部使用的CriFsLoader的读取单位大小 |
|
inlinestatic |
开始文件加载。
| binder | Binder |
| path | 文件路径 |
| readUnitSize | 内部使用的CriFsLoader的读取单位大小 |
|
inlinestatic |
开始Asset Bundle文件的加载。
| path | 文件路径 |
| readUnitSize | 内部使用的CriFsLoader的读取单位大小 |
|
inlinestatic |
开始Asset Bundle文件的加载。
| binder | Binder |
| path | 文件路径 |
| readUnitSize | 内部使用的CriFsLoader的读取单位大小 |
|
inlinestatic |
开始安装文件。
| srcPath | 安装源文件路径 |
| dstPath | 安装目标文件路径 |
|
inlinestatic |
开始安装文件。
| srcBinder | 安装源Binder |
| srcPath | 安装源文件路径 |
| dstPath | 安装目标文件路径 |
|
inlinestatic |
开始安装文件。
| srcPath | 安装源文件路径(URL) |
| dstPath | 安装目标文件路径 |
| doneDeleagate | 异步处理的完成回调 |
|
inlinestatic |
开始CPK文件Bind。
| targetBinder | Bind目标的Binder |
| srcPath | CPK文件路径 |
|
inlinestatic |
开始CPK文件Bind。
| targetBinder | Bind目标的Binder |
| srcBinder | 用于存取要Bind的CPK文件的Binder |
| srcPath | CPK文件路径 |
|
inlinestatic |
开始目录路径的Bind。
| targetBinder | Bind目标的Binder |
| srcPath | Bind的目录的路径名 |
|
inlinestatic |
开始目录路径的Bind。
| targetBinder | Bind目标的Binder |
| srcBinder | 用于存取要Bind的目录的Binder |
| srcPath | CPK文件路径 |
|
inlinestatic |
Bind文件。
| targetBinder | Bind目标的Binder |
| srcPath | 要Bind的文件的路径名 |
|
inlinestatic |
开始Bind文件。
| targetBinder | Bind目标的Binder |
| srcBinder | 用于存取要Bind的文件的Binder |
| srcPath | 文件路径 |
|
inlinestatic |
指定用于HTTP请求的User-Agent字符串。
| userAgentString | User-Agent文字 |
|
inlinestatic |
指定用于HTTP请求的代理Server。
| proxyPath | 代理Server地址 |
| proxyPort | 代理Server端口号 |
|
inlinestatic |
指定路径分隔符
| filter | 作为分隔符使用的字符一览 |
| const int DefaultReadUnitSize = (1024 * 1024) |
是各加载请求的预设读取单位大小。
|
getprotected set |
处理完成时的委托。
|
get |
是否已完成处理。
|
getprotected set |
错误信息。
|
getprotected set |
丢弃信息。
|
get |
|
get |
用于存放加载结果的缓冲区。
|
get |
用于加载Asset Bundle文件的路径。
|
get |
是加载结果的Asset Bundle。
|
getprotected set |
安装源的文件路径。
|
getprotected set |
安装目标文件路径。
|
getprotected set |
是安装处理的进度情况。
|
get |
要Bind的文件的路径。
|
get |