<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 內含文件 *GameMaker Studio 2*使用的資源不局限于你在程序中創建的。在 主窗口的**資源樹**中有一個特殊部分 ——**內含文件**。在這里,你可以將不同的文件類型(甚至為它們創建子目錄)加載到*GameMaker Studio 2*中,然后它們將作為所選目標平臺的包的一部分包含在最終游戲中。 因此,例如,在Windows游戲中,它們將捆綁在\* .exe中并在運行時導出,或者在 HTML5 中,它們將包含在html5\_game文件夾中并存儲在服務器上。 要將文件添加到資源,必須右鍵單擊![](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/images/icon_rmb.png)資源樹的**內含文件**部分,然后選擇*插入內含的文件*,或者,如果要創建用于存儲其他文件的子目錄,請單擊*添加組*。然后,這將提示你向列表添加一個文件或多個文件。添加完成后,你可以右鍵單擊![](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/images/icon_rmb.png)它并選擇*屬性*以編輯文件的屬性。 :-: ![Included File Properties](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/2_interface/1_editors/images/editor_includedfileproperties.png) 如果你修改*文件名*,可以在此重命名文件。 在文件名下方還有一系列選項用來設置這個文件需要被包含進哪些目標平臺的程序中。如果你希望僅在瀏覽器中運行游戲時將其導出,那么你只需勾選 HTML5 框,如果你希望僅將其導出到 Android 和 iOS 目標,則可以勾選這些內容,依此類推。如果你選擇不勾選任何目標,則根本不會導出該文件。此選項對于那些希望使用配置管理器來存儲某些配置并根據它們導出特定文件的用戶特別有用(單擊你要使用的配置,勾選 / 取消勾選你需要的平臺,然后如果你更改配置,那么選擇的文件將會繼承你的更改)。 單擊“確定”后,文件將與當前項目一起存儲在項目目錄中名為data-files的文件夾中。如果在將文件添加到資源樹時選擇更改文件名,則現在將*使用該新名稱*存儲該文件。請注意,從現在開始,你應該編輯存儲在此文件夾中的文件而不是原始文件(除非你打算再次包含它們,但通常沒有必要)。 有關如何在游戲中存儲包含文件以及如何訪問它們的詳細信息,請參閱[文件系統](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/1_overview/3_additional_information/file_system.html)部分。 **重要!**包含聲音文件時,應確保文件避免與**流式**聲音資源的名稱沖突。例如,當項目運行時,名為 “music” 的聲音資源和名為 “music.ogg” 的內含文件將被取消定義。 值得注意的是,你可以將 DLL(在 WIndows上)或 DyLib(在 Mac OS上)文件作為內含文件包含在內,然后使用[external\_define](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/3_scripting/4_gml_reference/miscellaneous/external_define.html)創建自己的自定義函數來處理它們。然后可以使用這[external\_call](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/3_scripting/4_gml_reference/miscellaneous/external_call.html)調用這些函數。 **警告!**使用內含文件這種方式創建額外的功能與[擴展](https://gamemakerchina.github.io/GMS2_manual_en2ch/source/_build/2_interface/1_editors/extensions.html)系統**不兼容**。這樣一來你就不能為在擴展中添加的新文件使用external\_函數,因為擴展中已經有一個添加常量和函數的方法。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看