XNA games have an Unload() method, where content is supposed to be unloaded. But what is the point of this? If all the content is being unloaded, then the game must be exiting, in which case everything would be garbage collected anyway, right?
XNA games have an Unload() method, where content is supposed to be unloaded. But
Share
As far as I understand it, it’s not useful for any standard uses, since as you say the garbage collector deals with things for you.
However, it’s useful to have an event called when your game is exiting for many things. For example you could send a message to all clients in a multiplayer game telling them you’re exiting, and then you can let the garbage collector kill your network connections.