且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Monogame Windows Phone 8 游戏项目上设置 xnb 文件?

更新时间:2023-11-08 10:39:16

  1. 使用 XnaContentCompiler 将资产编译到 xnb 中.

  1. Compile the assets into xnb's using the XnaContentCompiler.

将文件放在使用 MonoGame 模板创建的内容文件夹中.

Put the files in the content folder that is created with your MonoGame template.

将属性更改为 Build Action = Content 并复制到 Output Directory = Copy if Newer.

Change the properties to Build Action = Content and Copy to Output Directory = Copy if Newer.

做你平常的事var t = Content.Load(@"TextureName");.