在方案總管中:

1.Assets資料夾內建立一個"Content"資料夾

2.將原本XNA 裡的Content資料夾底下所有項目都搬到Assets

3."建置動作"選AndroidAsset

 

(方案總管Build 設定)


在LoadContent中,跟原本一樣的寫法

(LoadContent)


(Visual Studio for Android 模擬器,MonoGame for Android 執行成功畫面)


※ 2015/10/05 更新:

只要更改Build Action: AndroidAssets 即可,可放在原來Contents\底下,不需搬到\Assets\Contents\


參考資料:

http://community.monogame.net/t/could-not-load-spritefont-asset-as-a-non-content-file/2127/4

arrow
arrow
    全站熱搜

    小賢 發表在 痞客邦 留言(0) 人氣()