积极答复者
关于XNA中Content.Load<Texture2D>( xianer )文件路径不对

问题
-
默认的Content路径不是Content文件夹么
为什么将文件xianer.jpg放到文件夹Content中
再加载会出现 Error loading "xianer". File not found. 异常
那么正确的路径设置该是怎样呢?- 已移动 Sheng Jiang 蒋晟Moderator 2009年8月31日 17:19 XNA类库问题 (发件人:Visual C#)
答案
-
-
你好!
另外,这里有些类似的问题,你可以参考一下。
http://social.msdn.microsoft.com/Forums/en-US/xnagamestudioexpress/thread/e9baec4e-dac5-49ad-81cd-fcea4ef971d0
http://social.msdn.microsoft.com/Forums/en-US/xnaframework/thread/346e9210-53d8-4515-911b-d1870c66d50f
希望对你有所帮助。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 YiChun Chen 2009年9月7日 2:31
全部回复
-
Content.Load<Texture2d>(@"Content\xianer.jpg");试试
或者图片文件未创建- 已标记为答案 YiChun Chen 2009年9月7日 2:31
- 取消答案标记 YiChun Chen 2009年9月7日 2:31
-
-
你好!
另外,这里有些类似的问题,你可以参考一下。
http://social.msdn.microsoft.com/Forums/en-US/xnagamestudioexpress/thread/e9baec4e-dac5-49ad-81cd-fcea4ef971d0
http://social.msdn.microsoft.com/Forums/en-US/xnaframework/thread/346e9210-53d8-4515-911b-d1870c66d50f
希望对你有所帮助。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 YiChun Chen 2009年9月7日 2:31