跳转至

Import Custom Assets

Historical source, not current validated instructions. Original English content is retained for completeness. For execution use the current Getting Started and current UnrealCV command guide; do not copy historical commands without checking current compatibility.

Original source

  • ^LRo: Guides and Processes,Codebase

Usage guidance for importing custom asset PAK files into UnrealZoo.

Import Custom Assets into UnrealZoo

UnrealZoo supports loading custom Unreal Engine assets through standard Unreal Engine PAK files.

Users only need to package their assets into a .pak file and place it into the UnrealZoo Paks directory. UnrealZoo will automatically mount and scan these assets during startup.

Quick Start

  1. Place your custom assets in your UE project, eg. YourProject/Content/MyAssets/

  2. Create a PAK file from those assets

  3. Place the PAK file in .../UnrealZoo_UE5_6_v3.0.1/Windows/UnrealZoo_UE5_6/Content/Paks/

  4. Start UnrealZoo - assets are automatically mounted

Prerequisites

  • **Unreal Engine 5.6 **

  • UnrealZoo v3.0.0 or newer

  • Basic familiarity with Unreal Engine asset creation

Step 1. Create a PAK File

UnrealZoo follows Unreal Engine's standard PAK loading mechanism.

Please refer to Epic Games' official tutorial:

Official Tutorial

https://dev.epicgames.com/community/learning/tutorials/7Bj8/unreal-engine-example-project-loading-pak-files-at-runtime

The general process is:

  1. Create a normal Unreal Engine project.

  2. Import your custom assets.

  3. Cook the assets.

  4. Package them into a .pak file.

1. Organize Assets

Place all assets that should be exported into a PAK under a dedicated folder.

Example:

```Plain Text Content/ └── MyAssets/ ├── Meshes/ ├── Materials/ ├── Textures/ └── Characters/

### 2. Create a Primary Asset Label

In the Content Browser:

```Plain Text
Right Click
 └── Miscellaneous
      └── Data Asset
           └── PrimaryAssetLabel

image.png

image.png

Create a new asset:

image.png

Configure the asset:

Setting Value
Chunk ID 111
Apply Recursively Enabled
Cook Rule Always Cook
> Note: ChunkId shall be any unique positive integer greater than 0 and must be unique within UnrealZoo. The two PAK files must be assigned distinct ChunkIds. Id 0 is reserved and unavailable for use.

image.png

Next, add all assets intended for packaging into the PAK file to the **Explicit Asset **and **Explicit Blueprint **fields of the Data Asset. Conventional UAsset resources such as levels and meshes go into Explicit Asset, while character blueprints and similar blueprint assets are added to Explicit Blueprint.

image.png

3. Configure Packaging

Open:

```Plain Text Edit └── Project Settings └── Packaging

- **image**: image.png — [view original media](https://unrealzoo.notion.site/3422621c4d8a808ba408c40555e0b245#3742621c4d8a8008934fd7427554b3e1)

![image.png](assets/3742621c-4d8a-8008-934f-d7427554b3e1.png)

Open the Packaging pannel in Project Sttings.

Enable:

- Use Pak File

- Generate Chunks

Disable:

- Use Io Store

If “Use Io Store” is Enabled, please disable it. 

### 4. Configure **Asset Manager**

Open:

```Plain Text
Edit
 └── Project Settings
      └── Asset Manager

Open the Asset Manager pannel in Project Sttings.

Disable:

image.png

5. Package the Project

Package the project using the typical workflow:

```Plain Text Platforms └── Windows └── Package Project

- **image**: image.png — [view original media](https://unrealzoo.notion.site/3422621c4d8a808ba408c40555e0b245#3742621c4d8a804d9a2ad7c2927f881e)

![image.png](assets/3742621c-4d8a-804d-9a2a-d7c2927f881e.png)

Choose an output directory:

- **image**: image.png — [view original media](https://unrealzoo.notion.site/3422621c4d8a808ba408c40555e0b245#3742621c4d8a807283c6fe24acec9413)

![image.png](assets/3742621c-4d8a-8072-83c6-fe24acec9413.png)

 Wait for packaging to complete:

- **image**: image.png — [view original media](https://unrealzoo.notion.site/3422621c4d8a808ba408c40555e0b245#3742621c4d8a80c5b4bed457e67ab288)

![image.png](assets/3742621c-4d8a-80c5-b4be-d457e67ab288.png)

Unreal Editor will notify you when the packaging is completed:

- **image**: image.png — [view original media](https://unrealzoo.notion.site/3422621c4d8a808ba408c40555e0b245#3742621c4d8a80de89adcd9edbfc0499)

![image.png](assets/3742621c-4d8a-80de-89ad-cd9edbfc0499.png)

### 6. Locate the Generated PAK

After packaging, the generated PAK file can be found under:

```Plain Text
OutputPath/
└── Windows/
    └── YourProject/
        └── Content/
            └── Paks/

Example output:

image.png

Step 2. Import into UnrealZoo

After creating your .pak file, importing it into UnrealZoo only requires copying the file into the correct directory.

Copy the PAK File

Place the generated .pak file into UnrealZoo's PAK directory.

Example:

```Plain Text UnrealZoo-UE5/ └── UnrealZoo_UE5_6_v3.0.1/ └── Windows/ └── UnrealZoo_UE5_6/ └── Content/ └── Paks/ └── pakchunk111-Windows.pak

Multiple PAK files can be placed in this directory simultaneously.

### Start UnrealZoo

Launch UnrealZoo normally.

During startup, UnrealZoo will:

1. Search the `Content/Paks/` directory.

1. Automatically mount all discovered PAK files.

1. Scan assets contained in the mounted PAKs.

1. Register the discovered assets into the UnrealZoo asset system.

No additional configuration is required.

### Asset Discovery

After mounting, assets become available through UnrealZoo's asset management APIs.

Typical asset paths follow Unreal Engine conventions:

```Plain Text
/Game/MyAssets/SM_Chair
/Game/MyAssets/Materials/M_Wood
/Game/MyAssets/Characters/SK_Robot

The exact asset paths depend on how the assets were packaged in the source Unreal Engine project.

Verify Successful Mounting (Optional)

UnrealZoo provides several Python APIs for inspecting mounted PAK files.

List Mounted PAKs

import unrealcv

unrealcv.get_mounted_paks()

View Assets Inside a PAK

unrealcv.get_pak_assets_in_pak(
    "C:/.../UnrealZoo_UE5_6_v3.0.1/Windows/UnrealZoo_UE5_6/Content/Paks/pakchunk100-Windows.pak"
)

Runtime Mounting (Optional)

Although UnrealZoo automatically mounts PAK files at startup, users can also mount them at runtime.

unrealcv.mount_pak(
    "C:/.../UnrealZoo_UE5_6_v3.0.1/Windows/UnrealZoo_UE5_6/Content/Paks/pakchunk100-Windows.pak"
)

vset /pak/mount [pak_path] [pak_order]

Verify:

unrealcv.is_pak_mounted(
    "C:/.../UnrealZoo_UE5_6_v3.0.1/Windows/UnrealZoo_UE5_6/Content/Paks/pakchunk100-Windows.pak"
)

vget /pak/ismounted [pak_path|pak_index]

Unmount:

unrealcv.unmount_pak(
    "C:/.../UnrealZoo_UE5_6_v3.0.1/Windows/UnrealZoo_UE5_6/Content/Paks/pakchunk100-Windows.pak"
)

vset /pak/unmount [pak_path|pak_index]

Python API

Function Description
mount_pak(pak_file_path, pak_order=0) Mount a PAK file at runtime
unmount_pak(pak_file_path) Unmount a PAK file
get_mounted_paks() List all mounted PAK files
is_pak_mounted(pak_file_path) Check if a PAK is mounted
get_pak_files(pak_file_path) List raw file entries recorded in a pak file index.
get_pak_assets_in_pak(pak_file_path) List assets in a PAK
scan_pak_assets(mount_point, force_rescan=True) Scan assets from mount point
load_pak_asset(asset_path) Load an asset from PAK
get_pak_assets(package_path) Get assets under a path
register_pak_assets(package_path, category) Register assets to asset pool
### UE Console Command
  • vset /pak/mount [pak_path] [pak_order] - Mounts a PAK file (with specified load order) Parameters:

  • pak_path (str): Absolute or relative path to the PAK file

  • pak_order (uint): PAK loading order (0 = load last; smaller values load earlier)

  • vset /pak/unmount [pak_path|pak_index] - Unmounts a PAK file Parameters:

  • pak_path (str): Path to the PAK file

  • pak_index (uint): Logical index shown in vget /pak/mounted (starts at 1)

  • vget /pak/mounted - Retrieves the list of all mounted PAK files (with logical indices)

  • vget /pak/ismounted [pak_path|pak_index] - Checks if a PAK file is mounted Parameters:

  • pak_path (str): Path to the PAK file

  • pak_index (uint): Logical index shown in vget /pak/mounted (starts at 1) Return value: 1 (Mounted) or 0 (Not mounted)

  • vget /pak/files [pak_path|pak_index] - Lists all files recorded in the PAK file index Parameters:

  • pak_path (str): Path to the PAK file

  • pak_index (uint): Logical index shown in vget /pak/mounted (starts at 1)

  • vget /pak/assets_in_pak [pak_path|pak_index] - Gets the asset package paths within the PAK file Parameters:

  • pak_path (str): Path to the PAK file

  • pak_index (uint): Logical index shown in vget /pak/mounted (starts at 1)

  • vget /pak/registered_paths [pak_path|pak_index] - Gets paths in the PAK that can be resolved to long package names Parameters:

  • pak_path (str): Path to the PAK file

  • pak_index (uint): Logical index shown in vget /pak/mounted (starts at 1)

  • vget /pak/registered_status [pak_path|pak_index] - Gets resolvable long package paths and their existence status in the PAK Parameters:

  • pak_path (str): Path to the PAK file

  • pak_index (uint): Logical index shown in vget /pak/mounted (starts at 1)

  • vset /pak/scan [mount_point] [force_rescan] - Scans assets under the specified mount point from mounted PAKs Parameters:

  • mount_point (str): PAK mount point (e.g., "/Game/")

  • force_rescan (uint): Force rescan (0 = No, 1 = Yes)

  • vget /pak/load [asset_path] - Loads an asset by path from mounted PAKs Parameters:

  • asset_path (str): Asset path

  • vget /pak/assets [path] - Gets currently visible assets under the specified package path Parameters:

  • path (str): Package path

  • vset /pak/register [asset_path] [category] - Registers a PAK asset to the AssetPool Parameters:

  • asset_path (str): Asset path

  • category (str): Asset category (e.g., "Props", "Characters", etc.)

Known Issues

  • Maps using World Partition may fail to import, including Unreal Engine’s native OpenWorld template.

  • Maps baked with Static Lighting tend to exhibit incorrect lighting artifacts after import; switching all lights to Movable is recommended.

  • Static Meshes (SM) may render with unnatural lighting post-import, though basic/simplified maps generally import successfully.

  • If you place your PAK file inside the UnrealZoo_UE5_6/Content/Paks/ directory in advance, UnrealZoo will throw a startup error indicating failure to load the default map specified via launch command-line arguments. Two workarounds are available:

  • Omit the PAK file from the Paks folder before startup. After UnrealZoo fully launches, manually mount it via the console command:vset /pak/mount [pak_path] [pak_order]

  • Launch the program with UE command-line arguments to load your target map contained within the newly added PAK;