Content.ContentManager
Description: Defines a content manager that is used to preload AudioClip's and ImageSource's so that they can be used throughout a game.
Constructors
ContentManager ()
Creates a new instance of the ContentManager object.
Methods
LoadImage()
Loads the image located at the provided source location as an ImageSource. Returns the loaded ImageSource.
GetImage()
Retrieves an ImageSource designated under the provided name.
UnloadImage()
Unload the ImageSource that is mapped to the provided name.
LoadAudio()
Loads an AudioPlayer for the provided clip info. Returns the loaded player for easy access.
GetAudio()
Retrieves a loaded audio player under the provided name.
UnloadAudio()
Unload the AudioPlayer that is mapped to the provided name.
Examples
There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.