add-file.rst 954 B

123456789101112131415161718192021
  1. .. include:: ../_header.rst
  2. Importing files
  3. ---------------
  4. .. toctree::
  5. add-file-with-add-button
  6. import-from-blocks-view
  7. import-from-files-view
  8. import-scripts
  9. public-root
  10. Before you can use a file in your game, you must create a configuration entry for it in an |AssetPackFile|_. This is called **importing** the file.
  11. You can import a file using the Asset Pack Editor's `Main toolbar <add-file-with-add-button.html>`_ or `Blocks view <import-from-blocks-view.html>`_,
  12. or using the `Files view <import-from-files-view.html>`_. We'll discuss each of these in the following sections.
  13. A special section discusses the advantages of importing scripts using the |AssetPackFile|_: `Importing JavaScript files <import-scripts.html>`_.
  14. You can un-import a file, removing its |AssetPackFile|_ entry, by pressing the ``Delete`` key in the |AssetPackEditor|_ or the `Outline view <outline-view.html>`_, or from their context menus.