Skip to main content

Unreal Engine Assets Dump

Command-line Interface (CLI) responsible for returning the list of the assets of an Unreal Engine project into a JSON structure.

Development

Poetry

Unreal Engine Assets Dump project used Poetry to declare all its dependencies. Poetry is 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:

poetry env use /Users/Shared/Epic\ Games/UE_5.2/Engine/Binaries/ThirdParty/Python3/Mac/bin/python3

We can enter this virtual environment and install all the required dependencies:

poetry shell
poetry update

Publication

To publish a new version of the Unreal Engine Assets Dump library to Pypi, we need to execute the following command:

poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD

Where the environment variables:

  • $PYPI_USERNAME: The value __token__
  • $PYPI_PASSWORD: The API token used to authenticate when uploading packages to PyPI (e.g., pypi-...)

We generally defined a .env file 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-(...)

Installation

To install Unreal Engine Assets Dump library to Unreal Engine, execute the following command.

/Users/Shared/Epic\ Games/UE_5.1/Engine/Binaries/ThirdParty/Python3/Mac/bin/python3 -m pip install --upgrade uasset-dump
/Users/Shared/Epic\ Games/UE_5.2/Engine/Binaries/ThirdParty/Python3/Mac/bin/python3 -m pip install --upgrade uasset-dump

/Users/admin/Library/JenkinsAgent/workspace/client-app/scooby-app-build/main/Scooby/Content

Execution

Then we can load our Unreal Engine project in Unreal Engine Editor and execute the following Python instructions in the Output Log drawer:

from bootloader.ue.utils import uasset_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"
    ]
  },
  (...)
]
export UNREAL_ENGINE_PROJECT_PATH=/Users/admin/Library/JenkinsAgent/workspace/client-app/scooby-app-build/main/Scooby/Scooby.uproject

export UNREAL_ENGINE_ASSET_DUMP_FILE_PATH=/Users/admin/bootloader-scooby-uassets.dump.json

"`find "/Users/Shared/Epic Games/UE_5.2" -name UnrealEditor-Cmd`" \
    "$UNREAL_ENGINE_PROJECT_PATH" \
    -run=pythonscript \
    -stdout \
    -Unattended \
    -script="/Users/admin/Downloads/run.py"

echo $?;

Command Line Execution


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uasset_dump-0.0.17.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uasset_dump-0.0.17-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file uasset_dump-0.0.17.tar.gz.

File metadata

  • Download URL: uasset_dump-0.0.17.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/22.5.0

File hashes

Hashes for uasset_dump-0.0.17.tar.gz
Algorithm Hash digest
SHA256 025d0a68ca66ee29af507d6d6af097eaec81ecfe27a090ab4a804493aee5cfa5
MD5 aed8f0ece618357c3b7e4cb74082f141
BLAKE2b-256 ada0da0cf391105bffdede381ce2070ba86083f202cd8fd5c77e02a8a316cabf

See more details on using hashes here.

File details

Details for the file uasset_dump-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: uasset_dump-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Darwin/22.5.0

File hashes

Hashes for uasset_dump-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 2a4190f6e688227faf65717b63b9bfc51643e30085b3eff1f95d5e29ddeaf799
MD5 7af9711de6129a325341903bc6885064
BLAKE2b-256 1f37b0772033e99b8e3b22a12298ecbf8ec5a8f56068745183058fdabb9d318a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.17 This release

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page