ES2Reader.Read

public T Read<T>(string tag)

Parameters

T The type of the data we want to load. Must be on the Supported Types list.

tag

The tag which we want to load.

Returns

T Our loaded data

Description

Reads the data of type T from the ES2Reader with the given tag.

C#

Reading tags from an ES2Reader

JS

Reading tags from an ES2Reader


public T Read(string path, T component)

Parameters

tag The tag which we want to load.

component

The Component we want to assign our loaded data to. Must be in the Supported Types list.

Description

Self-Assigning Read. Reads the Component of type T from the specified ES2Reader and automatically assigns it to our Component.

C#

Reading tags from an ES2Reader

JS

Reading tags from an ES2Reader

public T Read<T>()

Parameters

T The type of the data we want to load. Must be on the Supported Types list.

Returns

T Our loaded data

Description

Reads the data of type T from the ES2Reader. The data must have been saved sequentially using ES2Writer.

C#

Reading data sequentially from an ES2Reader

JS

Reading data sequentially from an ES2Reader


public T Read(T component)

Parameters

tag The tag which we want to load.

component

The Component we want to assign our loaded data to. Must be in the Supported Types list.

Description

Self-Assigning Read. Reads the Component of type T from the specified ES2Reader and automatically assigns it to our Component.

C#

Reading data sequentially from an ES2Reader

JS

Reading data sequentially from an ES2Reader