I have an assembly dll with some code that gets created in a 3rd party app for my users (basic code, nothing complex). This is working nicely, but now, I want to enable my user to tweak the values after unity has been fired up without having to re-launch the player everytime they make a change to their formuals. Is there a way that I can reload a new assembly while unity is running?
If I recompile the script in the background and it is in the plugins folder, should that work? I just tested a manual way of doing this and it seems like unity just automatically reloads the file…
if you do something in the background you have to either manually reimport it or lose and regain focus to the editor for the editor to even have the possibility to pick up the change
Took me a while to find so I figured I’d share. This is undocumented and semi-hidden, but public (no hacks), and it works.
The original solution of locating any .cs/.js/.dll and doing AssetDatabase.ImportAsset() also works (in case UT ever pulls the plug on RequestScriptReload).