• Load a script by name or path in order to use that type to create or get a component at runtime.

    You can use the modules name or path. Both by name or by path will be relative to the script which is calling require, but by name will check the same folder as the script, then the parent folder, and so on. In addition, any require can be relative to your library folder. Take a look at the Scripting guide to learn more.

    Parameters

    • name: string

    Returns string