Package: uasset-dump
Unreal Engine Assets DumpCommand-line Interface (CLI) responsible for returning the list of the assets of an Unreal Engine project into a JSON structure.DevelopmentPoetryUnreal Engine Assets Dumpproject used Poetry to declare all its dependencies.Poetryis a python dependency management tool to manage dependencies, packages, and libraries in your python project.We need to create the Python virtual environment using Poetry:poetryenvuse/Users/Shared/Epic\Games/UE_5.2/Engine/Binaries/ThirdParty/Python3/Mac/bin/python3We can enter this virtual environment and install all the required dependencies:poetryshell
poetryupdatePublicationTo publish a new version of theUnreal Engine Assets Dumplibrary toPypi, we need to execute the following command:poetrypublish--build--username$PYPI_USERNAME--password$PYPI_PASSWORDWhere the environment variables:$PYPI_USERNAME: The value__token__$PYPI_PASSWORD: TheAPI tokenused to authenticate when uploading packages to PyPI (e.g.,pypi-...)We generally defined a.envfile and add these environment variables:# Copyright (C) 2023 Bootloader.  All rights reserved.
#
# This software is the confidential and proprietary information of
# Bootloader or one of its subsidiaries.  You shall not disclose this
# confidential information and shall use it only in accordance with the
# terms of the license agreement or other applicable agreement you
# entered into with Bootloader.
#
# BOOTLOADER MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
# SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT
# NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR
# A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.  BOOTLOADER SHALL NOT BE
# LIABLE FOR ANY LOSSES OR DAMAGES SUFFERED BY LICENSEE AS A RESULT OF
# USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.

# The Python Package Index (PyPI) API token to authenticate when
# uploading this package to PyPI.
PYPI_USERNAME=__token__
PYPI_PASSWORD=pypi-(...)InstallationTo installUnreal Engine Assets Dumplibrary to Unreal Engine, execute the following command./Users/Shared/Epic\Games/UE_5.1/Engine/Binaries/ThirdParty/Python3/Mac/bin/python3-mpipinstall--upgradeuasset-dump
/Users/Shared/Epic\Games/UE_5.2/Engine/Binaries/ThirdParty/Python3/Mac/bin/python3-mpipinstall--upgradeuasset-dump/Users/admin/Library/JenkinsAgent/workspace/client-app/scooby-app-build/main/Scooby/ContentExecutionThen we can load our Unreal Engine project in Unreal Engine Editor and execute the following Python instructions in the Output Log drawer:frombootloader.ue.utilsimportuasset_dump
uasset_dump.dump_assets('/Users/dcaune/Devel/Bootloader/bootloader-human-trainer-ar5/Content')This prints long JSON data.  For instance:[{"asset_name":"A_d2_ChangeOutfit_01","asset_class_path":"/Script/Engine/AnimSequence","package_name":"/Game/ArtAssets/Pets/QuadrupedDog/Animations/A_d2_ChangeOutfit_01","dependencies":["/Game/ArtAssets/Pets/QuadrupedDog/Mesh/S_d2"]},{"asset_name":"A_d2_ChangeOutfit_02","asset_class_path":"/Script/Engine/AnimSequence","package_name":"/Game/ArtAssets/Pets/QuadrupedDog/Animations/A_d2_ChangeOutfit_02","dependencies":["/Game/ArtAssets/Pets/QuadrupedDog/Mesh/S_d2"]},(...)]exportUNREAL_ENGINE_PROJECT_PATH=/Users/admin/Library/JenkinsAgent/workspace/client-app/scooby-app-build/main/Scooby/Scooby.uprojectexportUNREAL_ENGINE_ASSET_DUMP_FILE_PATH=/Users/admin/bootloader-scooby-uassets.dump.json"`find "/Users/Shared/EpicGames/UE_5.2" -name UnrealEditor-Cmd`"\"$UNREAL_ENGINE_PROJECT_PATH"\-run=pythonscript\-stdout\-Unattended\-script="/Users/admin/Downloads/run.py"echo$?;Command Line Execution