Automagically imports everything from the Assets
folder into Content/Imported
. Whenever you change something, it re-imports it.
Check out the documentation on Flax plugins. This one is an editor plugin.
Clone the project and open it in Flax. Then, check out the code in Source/Editor
. It currently has 4 files
ResourcePlugin.cs
simply sets up the pluginAssetFolderSynchronizer.cs
implements the actual logic. It looks at theAssets
folder and (re)imports the new files intoContent/Imported
. It does so once at the beginning and then again every time something changes.FileSystemEventBuffer.cs
is a wrapper around aFileSystemWatcher
. It debounces the usually quite chaotic filesystem events.ContentItemExtensions.cs
has a single extension methods to get all children of aContentFolder