Skip to content

TileMapFormat.ReadAsync Method ​

Definition ​

Reads a tilemap file asynchronously.

c#
public new Task<TileMapFile> ReadAsync(Stream stream, CancellationToken cancellationToken = null);

Parameters ​

NameTypeDescription
streamStreamThe stream to read.
cancellationTokenCancellationTokenAn optional cancellation token.

Returns ​

Task<TileMapFile>

The file read from the stream.