共用方式為


DrawableGameComponent.LoadGraphicsContent Method

Called when the component needs to load graphics resources. Override this method to load any component-specific graphics resources.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)

Syntax

protected virtual void LoadGraphicsContent (
         bool loadAllContent
)

Parameters

  • loadAllContent
    true if all graphics resources need to be loaded; false if only manual resources need to be loaded.

See Also

Reference

DrawableGameComponent Class
DrawableGameComponent Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista