Skip to content

hotFiles beta ​

Function of @v12-engine/client

ts
export declare function hotFiles(changed: Partial<ChangedFiles>): Promise<void>;

Tells everything live in the page that model and texture files changed on disk, as the dev server does when a .glb or a picture of the project is saved: the models are loaded anew and everything drawn with them is drawn again, the ground with a changed texture too. Settles once they all have. The editor's Vite plugin puts a call to it in every page of the dev server (the library itself never asks the bundler: import.meta.hot.on('v12:asset-files', hotFiles)); a page without it is told by code, a tool's own watcher