Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReadStatus

The state of an asynchronous file request.
Read time 1 minuteLast updated 12 days ago

Definition

public enum ReadStatus

Remarks

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.

Fields

Value

Description

CanceledThe asynchronous file request was canceled before the read operations were completed.
CompleteThe asynchronous file request completed successfully and all read operations within it were completed in full.
FailedOne or more of the asynchronous file request's read operations have failed.
InProgressThe asynchronous file request is in progress.
TruncatedThe asynchronous file request has completed but one or more of the read operations were truncated.