user-components-create-file.rst 912 B

12345678910111213141516171819202122232425
  1. .. include:: ../_header.rst
  2. Create a new User Components file
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. These are the steps to create a new |UserComponents|_ file:
  5. #. Open the `New File dialog <../workbench/new-file-dialog.html>`_.
  6. #. Select the **User Components File** option. This opens the **New User Components File** dialog.
  7. #. In the new dialog, select the location of the new file.
  8. #. Write the name of the new file. The ``.components`` extension is added automatically, if not set.
  9. #. Press the **Create** button. The file will be created and opened in the |UserComponentsEditor|_.
  10. .. image:: ../images/scene-editor-user-components-new-file-20221101.webp
  11. :alt: New User Components file.
  12. .. warning::
  13. The ``*.components`` files are only used by the editor. It is recommended to exclude them from the final release of the game. Only the generated JavaScript files are relevant to the game files.