Skip to content

About

For those who are using Linux Distro and has problem with Unity Auto Reload feature

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Unity Auto Reload

Unity Auto Reload is a small Editor utility for projects where Unity misses external file changes. It watches files under Assets/ and can call AssetDatabase.Refresh() automatically.

This package was created after I ran into an issue on Unity 6.3 while using an Arch-based Linux distro: script and CSV edits made from external editors were not being picked up by Unity automatically

It was built for Linux workflows where Unity's automatic refresh can miss changes from external editors, but the tool is configurable and defaults off on non-Linux platforms.

Features

  • File watcher based refresh.
  • Optional polling fallback.
  • Script-only, all-assets, or custom-extension scopes.
  • Optional refresh during play mode.
  • Optional ForceUpdate refresh.
  • Local per-user settings through EditorPrefs.
  • Defaults enabled on Linux Editor and disabled elsewhere.

Install

Git URL

In Unity:

  1. Open Window > Package Manager.
  2. Click +.
  3. Select Add package from git URL.
  4. Enter your repository URL:
https://github.com/Ege-Mert/unity-auto-reload.git

Local Package

In Unity:

  1. Open Window > Package Manager.
  2. Click +.
  3. Select Add package from disk.
  4. Choose this package's package.json.

Usage

Open:

Tools > Unity Auto Reload > Settings

Recommended defaults:

  • Use File Watcher: on
  • Use Polling Fallback: on for Linux (the default there), off elsewhere
  • Refresh Scope: Scripts Only for code workflows
  • Refresh Scope: Custom Extensions for CSV/table workflows

For CSV/data iteration, use the CSV/Data Editing preset.

Troubleshooting

If refreshes are missed intermittently:

  • Check the console for file watcher kept failing. That points at the inotify watch limit; raise it with sudo sysctl fs.inotify.max_user_watches=524288 (persist it in /etc/sysctl.d/).
  • Leave Use Polling Fallback on. It is the only path that survives a dead watcher, and the refresh still happens within Polling Interval + Settle Delay.
  • Edits saved during a compile are picked up by the catch-up scan that runs right after the domain reload, so they no longer need a second save to register.

Notes

Tested with Unity 6.3 on an Arch-based Linux distro.

Polling fallback does not scan every editor frame. The editor update callback runs every frame, but file scanning only happens after Polling Interval has elapsed.

License

MIT

About

For those who are using Linux Distro and has problem with Unity Auto Reload feature

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages