Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DrawableGameComponent.UnloadGraphicsContent Method

Obsolete. Called when graphics resources should be unloaded. Override this method to handle component-specific graphics resources.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in

protected virtual void UnloadGraphicsContent (
         bool unloadAllContent


true if all graphics resources should be unloaded; false if only manual resources should be unloaded.

This method is obsolete in XNA Game Studio 2.0. Override LoadContent to unload graphics resources.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

© 2015 Microsoft