Live File Sync (Auto-Watch Service)
DataLoom Pro watches configured spreadsheet files in the background and re-imports them immediately when saved.
File System Integration
The FileWatchService utilizes System.IO.FileSystemWatcher to run asynchronous monitors:
- It runs in the background of the Unity Editor.
- It operates across file modifications, creations, and renames.
- It is script-refresh resilient, using a
ScriptableSingletonconfiguration to keep active watches alive across domain reloads.
Debouncing Mechanics
When external tools (such as Excel or Photoshop) write files, they perform multiple operations (such as creating temporary files, writing chunks, and renaming). To prevent duplicate imports or reading half-written files, the watcher service debounces reload notifications by 100ms. It waits until all writes have ceased and locks are released before triggering the import pipeline.