Reload scripts/data of an exported game and applies the changes to the running runtime game.

Constructors

Methods

  • Trigger a hot-reload of the game. The hot-reload is added to a queue and processed in order.

    This allows the editor to trigger multiple hot-reloads in a row (even if it's sub-optimal) and not miss any (one could for example be reloading libraries or code, while other are just reloading resources).

    Parameters

    • options: HotReloadOptions

    Returns Promise<HotReloaderLog[]>

  • Add the children object data into every custom object data.

    At the runtime, this is done at the object instantiation. For hot-reloading, it's done before hands to optimize.

    Parameters

    • projectData: ProjectData

      The project data

    • objectDatas: ObjectData[]

      The object datas to modify

    Returns ObjectData[]