Hey everyone,
I'm working on an XNA (well, MonoGame) app and I'm wondering what needs to go in the auto-generated UnloadContent() method?
Most of my models, textures, effects, etc... are loaded from ContentManager and so don't need to be manually unloaded. I do have a few tiny things that I'm creating myself though - for example, a couple of 1x1 Texture2Ds which I use for rendering coloured rectangles and lines via SpriteBatch, and a RenderTarget2D that I use for my shadow mapping.
What's your rule for when something needs to go into UnloadContent(), and what should I actually do with it there?
Thanks so much!