Ant*_*nov 5 c# macos mono monogame xamarin-studio
我正在尝试使用Xamarin Studio 4.0.10(版本5)中的MonoGame创建一个简单的程序.但是当我尝试使用Content.Load方法加载一些纹理时,我收到一条System.MissingMethodException带有消息的异常
Method not found: 'MonoMac.AppKit.NSImage.AsCGImage'.
Run Code Online (Sandbox Code Playgroud)
我使用的实际代码行是:
protected override void LoadContent()
{
//some stuff here
Texture2D freezeTexts = new Texture2D[5];
for (int i = 0; i < 5; i++) {
freezeTexts[i] = Content.Load<Texture2D>("freeze"+i); // exception here
}
//some other stuff here
}
Run Code Online (Sandbox Code Playgroud)
我做了一些谷歌搜索,发现这是因为一些API更改,Xamarin Studio尚未实现(至少这是我所理解的).所以我的问题是:我该如何解决这个问题?
| 归档时间: |
|
| 查看次数: |
562 次 |
| 最近记录: |