UEXDev

Content Management

May 6th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. Texture2D texture;
  2. SpriteFont font;
  3. Model model;
  4.  
  5. protected override void LoadContent()
  6. {
  7.     // Load a texture, a font and a model
  8.     this.texture = this.Game.Content.Load<Texture2D>("wall");
  9.     this.font = this.Game.Content.Load<SpriteFont>("my_arial");
  10.     this.model = this.Game.Content.Load<Model>("big_dude");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment