Is it possible to detect asset change while running in the unity editor. When I update my model, I see it change but the xml data associated with it does not change. So it would be nice to detect that and reload the xml data while running in the unity editor.
Take the 2-minute tour
×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.
Try OnPostprocessModel (on asset pipeline objects only; does not work on regular scripts) which should be called anytime a model is imported. There are similar hooks for textures and so on as well. If that doesn't work, or if you want to monitor files that don't correspond to Unity assets, you can set up your own file monitor using FileSystemWatcher to check for any new, modified, or deleted files. |
|||||
|