Version: 2023.2

ReadStatus

enumeration

切换到手册

描述

The state of an asynchronous file request.

These enumerations represent the raw underlying states of an asynchronous file request.

When submitted, all requests enter the ReadStatus.InProgress state while they are pending execution or in progress. On completion, the state changes to ReadStatus.Complete, ReadStatus.Truncated or ReadStatus.Failed. If the read is canceled before completion, the state becomes ReadStatus.Canceled.

A truncated read occurs when attempting to access beyond the end of a file.

变量

CompleteThe asynchronous file request completed successfully and all read operations within it were completed in full.
InProgressThe asynchronous file request is in progress.
FailedOne or more of the asynchronous file request's read operations have failed.
TruncatedThe asynchronous file request has completed but one or more of the read operations were truncated.
CanceledThe asynchronous file request was canceled before the read operations were completed.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961