Load
Introduction
File locations
Texture2D texture = FlatRedBallServices.Load<Texture2D>("redball.bmp");Texture2D texture = FlatRedBallServices.Load<Texture2D>("C:\MyGame\bin\x86\debug\content\redball.bmp");Texture2D texture = FlatRedBallServices.Load<Texture2D>("redball.bmp");Texture2D texture = FlatRedBallServices.Load<Texture2D>(FileManager.RelativeDirectory + "redball.bmp");Files and Folders
// If added as a file:
FlatRedBallServices.Load<Texture2D>("content/redball.bmp");
// If added through the content pipeline:
FlatRedBallServices.Load<Texture2D>("content/redball");Load and Caching
Load can return IDisposables added through AddDisposable
Last updated
Was this helpful?