ES2.LoadAll

public static ES2Data LoadAll(string path)

Parameters

path The path of the file we want to load from.

Returns

ES2Data The ES2Data object representing our loaded data."

Description

This method loads all tags from a file and returns an ES2Data object, which contains the loaded objects. You can then use the Load methods of the ES2Data object.

This is much faster than loading each tag separately.

Note that the ES2Data object does not allow you to do self-assigning loads, so when Components are loaded it will create a GameObject to attach them to. Consider storing Components in a separate file and loading them individually if this is not suitable for you.

C#

JS