Menu
Lumberyard
User Guide (Version 1.14)

Packaging Your Assets

Before you can include your assets in your new Gem, you must place them within your Lumberyard's game project root directory. This way, they will be imported by Lumberyard Asset Pipeline and converted into assets that Lumberyard can use. After you move and import your assets, you must test them in Lumberyard to ensure that they still work as intended. You then move the verified assets into the Gem directory structure that was created when you created a new Gem.

To package your assets

  1. Prepare your asset directory.

    1. Create a directory directly beneath your game project's root directory. For example, the Samples Project's game project root directory is \dev\SamplesProject.

    2. Place into the new directory your assets and any related files and subdirectories containing files that your assets use, such as textures. Ensure that you maintain the original directory structure within the asset directory to avoid breaking relative file paths in your assets.

    3. If preferred, you can create additional subdirectories for organization purposes. Be sure to amend any file references that may be broken by the new structure.

  2. Import the assets into Lumberyard. To do this, launch Lumberyard. The Asset Processor automatically detects the new assets and imports them.

  3. Verify and test the assets.

    1. In Lumberyard, open a level and find your asset directory in the Asset Browser. If the Asset Browser is not open, click Tools, Asset Browser to open it.

    2. Drag your assets into the level and verify that they look and function as intended. If necessary, make changes to the assets, such as assigning textures or changing materials.

    3. Save any changes that you made to your assets, and then close Lumberyard.

  4. Move the contents of your asset's root directory that you created in Step 1. Be sure to include the metadata files generated by the Asset Processor. Place the contents into the new Gem's Assets directory. This is located at \dev\Gems\gem_name\Assets.

    Note

    The Gem's Assets directory maps to the root of your project folder. For example, if your asset is in \dev\<project_name>\my_asset\, then it maps to the Gem at \dev\Gems\<my_gem>\Assets\my_asset\.