Dynamic content realoding
- by Kikaimaru
Is there a relatively simple way to dynamicaly reload content files? (ie: effect files)
I know i can do following:
Detect change of file
Run content pipeline to rebuild that specific file
Unload ALL content that was loaded
Load All content
And use double references to reference content files.
Problem is with step 3 (and step 2 isn't that nice too). But i need to unload everything because if i have model Hero.x which references Model.fx effect, and i change Model.fx file, i need to reload Hero.x file which will then call LoadExternalReference on Model.fx.
So I guess question is, did someone mange to make this work without rewriting whole ContentManager (and every ContentReader) and tracking calls to LoadExternalReference?