ES2.LoadList

public static List<T> LoadList<T>(string path, ES2Settings settings=null)

Parameters

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

path

The path where our data is stored. For more information, see Paths.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Returns

List<T> Our loaded List.

Description

Loads a List containing data of type T from the specified path.

C#

JS

public static void LoadList<T>(string path, List<T> components, ES2Settings settings=null)

Parameters

T The type of the data in the List we want to load. Must be on the Supported Types list and be a Component/MonoBehaviour.

path

The path where our data is stored. For more information, see Paths.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Loads a List containing data of type T from the specified path, into the values in the List provided as a parameter.

The List provided as a parameter should be the same length as the data we’re loading, and be filled with Components of the same type that we’re loading. The data we’re loading will then be loaded into each of these Components.

C#

JS