![]() ![]() String xnaTexturesPath = path.Substring(0, path.LastIndexOf("\\")) + "\\textures xna" More code: public void LoadXNA(.ContentManager cmgr, string path) I can't add those xnb files to my project, because I won't have them at compile time. Says that the file doesn't exist, while File.Exists right next to it shows that it indeed exists. Texture2D.FromStream returns "unexpected error", and using (var g = new Game1()) I'm trying to make my game load compiled xnb textures outside the main game class, as I usually do with my image files (which are not compiled to xnb format) and it doesn't work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |