Version: 2022.3

File

class in UnityEngine.Windows

切换到手册

描述

提供文件操作的静态方法。

The UnityEngine.Windows.File class is an alternative to the System.IO.File class. Note: UnityEngine.Windows.File is only available when targeting the Universal Windows Platform.

静态函数

Delete删除指定文件。
Exists确定指定文件是否存在。
ReadAllBytes打开二进制文件,将文件内容读入一个字节数组中,然后关闭该文件。
WriteAllBytes创建新文件,将指定字节数组写入到此文件中,然后关闭该文件。如果目标文件已经存在,它将被覆盖。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961