共用方式為


DrawableGameComponent.UnloadGraphicsContent Method

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 microsoft.xna.framework.game.dll)

Syntax

protected virtual void UnloadGraphicsContent (
         bool unloadAllContent
)

Parameters

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

See Also

Reference

DrawableGameComponent Class
DrawableGameComponent Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista