Version: 2022.2

VirtualFileSystem.GetLocalFileSystemName

切换到手册
public static bool GetLocalFileSystemName (string vfsFileName, out string localFileName, out ulong localFileOffset, out ulong localFileSize);

参数

vfsFileName Virtual file entry to find.
localFileName Out parameter containing the file on the local filesystem.
localFileOffset Out parameter containing the offset inside of file on the local filesystem.
localFileSize Out parameter containing the size inside of file on the local filesystem.

返回

bool Details were successfully found.

描述

This method looks up the virtual file entry specified, and returns the details of that file within the file on the local filesystem.

It populates the localFileName, localFileOffset, and localFileSize parameters with the path of the file on the local filesystem that contains the virtual file, and the offset and size of the virtual file within it. This method returns true if the details were successfully found. It returns false if it was not possible. This can happen if the virtual file is contained in a memory filesystem, or in a compressed file.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961