Skip to main content

Module hot_reload

Module hot_reload 

Source
Expand description

Project hot-reload pump.

Drains pending filesystem-change events from the project watcher, invalidates the AssetService cache for modified UUIDs, and reindexes when files are added or removed. Run once per frame, before the agents see the world, so a coherent VFS is in scope for the rest of the tick.

Functions§

collect_asset_entries
Build an AssetEntry cache from the current VFS contents. Used by the initial project open and when the user browses to a different folder at runtime.
pump
Drain the project’s filesystem watcher and apply the appropriate invalidation / reindex actions. The asset browser cache is rebuilt whenever a full reindex was queued.