Tag: xamarin studio

在通过AssetManager加载时,无法使用libgdx在IOS中加载TextureAtlas文件

我开始将我的LIBGDX应用程序移植到IOS。 我使用libgdx的Xamarin工作室端口在IOS上运行我的应用程序。 我成功移植但应用程序无法在Iphone模拟器中加载TextureAtlas文件和BitmapFont文件。 我试过的代码是 … AssetManager assetManager = new AssetManager(); assetManager.load(“packer/help.txt”, TextureAtlas.class); if (assetManager.update()) { } … 上面的代码在桌面和Android上运行正常,但在Iphone Simulator上运行时,我得到了以下日志。 Unhandled Exception: 0 iosgame 0x000f4f7e mono_handle_exception_internal_first_pass + 2190 1 iosgame 0x000f69c2 mono_handle_exception_internal + 1602 2 iosgame 0x000f750f mono_handle_exception + 47 3 iosgame 0x0013a662 mono_x86_throw_exception + 306 4 ??? 0x0b730f8f 0x0 + 192089999 at com.badlogic.gdx.assets.AssetManager.update () [0x0009c] […]