Packaging your project

Before we can export our project and share it with others, we first need to package it. Packaging is the name for a series of different steps, including compiling your project, then cooking content into a format that the platform understands before finally putting the project in a certain format. This will allow you to test/play your full game (instead of a single map) in the same way that it would be when published.

Getting ready

Before we start working on this, we need to have a completed project. In my example, I created a new blank project, but any of the things we worked on in the book should work fine.

How to do it…

Let's see just how the packaging works! Follow these steps:

  1. From the File menu, navigate to Package Project | Windows | Windows (64 Bit).
  2. From there, you should see a Browse For Folder dialog window pop up. Here, we will want to place the files for the game. In my case, I selected Desktop and then selected Make New Folder. From here, I renamed this new folder to UE4 EXPORT:
    How to do it…
  3. After you've selected your folder, click on the OK button and you'll notice a new message on the bottom-right of your screen, saying that the project is currently being packaged.
    How to do it…

This is done as a background process as it will often take some time, so you can still make changes and work with the editor; note that the changes made during this period will not be reflected in your packaged project.

It is also possible to display additional information about what's going on by clicking the Show Log button. The output log can be useful in case something went wrong:

  1. Once you see the message disappear, you should go back to the exported folder, and once there, you should see a folder called WindowsNoEditor. Double-click on that folder and you should see a number of files.
    How to do it…
  2. Double-click on the .exe file and you should see your game started!
    How to do it…

With this, we've now exported our project for others to play!

Tip

If, like this generic example, you do not have functionality for exiting the game, feel free to press Alt + Tab to exit the game and then just simply click on the X in the top-right.

Note

For more information on exporting projects to different platforms, such as iOS and Android, visit https://docs.unrealengine.com/latest/INT/Engine/Basics/Projects/Packaging/index.html#distribution.

If you're specifically interested in exporting to iOS, refer to https://docs.unrealengine.com/latest/INT/Platforms/iOS/QuickStart/index.html.

In addition, if you're specifically interested in exporting to Android, visit https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/index.html.

For specifics on working with mobile projects, read Learning Unreal Engine Android Game Development and Learning Unreal® Engine iOS Game Development, both by Packt Publishing.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.159.136