ES2Reader.ReadArray

public T[] ReadArray<T>(string tag)

Parameters

T The type of the data in the array 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 array of type T from the ES2Reader with the given tag.

C#

Reading tags from an ES2Reader

JS

Reading tags from an ES2Reader


public void ReadArray(string path, T[] components)

Parameters

tag The tag which we want to load.

components

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

Description

Self-Assigning Read. Reads the Components of type T from the specified ES2Reader and automatically assigns it to the Components in our components array.

C#

Reading tags from an ES2Reader

JS

Reading tags from an ES2Reader

public T[] ReadArray<T>()

Parameters

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

Returns

T[] Our loaded data

Description

Reads the array 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 void ReadArray(T components)

Parameters

tag The tag which we want to load.

component

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

Description

Self-Assigning Read. Reads the Components of type T from the specified ES2Reader and automatically assigns it to the Components in our components array.

C#

Reading data sequentially from an ES2Reader

JS

Reading data sequentially from an ES2Reader