Skip to main content

Asset Management

Last Updated Time: 11/13/2023

Referencing Assets

In the Resource Preview window, select an asset and right-click to open the shortcut menu, then select Reference Relation to view the reference relationships of the asset in the pop-up window.

image-20230721095254441

The Asset Reference Relation window:

image-20230718141057825

No.Description
1Reference other assets of the selected asset.
2Currently selected asset.
3Other assets that the currently selected asset depends on.
4Navigation and Search Box. Double-click a node in the Asset Reference Relation window and it will jump to display the reference relationship of the node, then you can go back or forward by the Navigation buttons. Enter text in the search box and the nodes that match the text in the search box will be highlighted.

Reference/Dependency Types:

No.Description
1White text indicates the explicit dependencies (assets that have dependencies documented in the file).
2Blue text indicates the implicit dependencies (Assets that do not have dependencies documented in the file, but depend on other assets through a certain rule, e.g. the same file name with different suffixes).
3Bright pink text indicates the depended asset does not exist, just like the Template_CubMap_irr_file.dds showed above.
Note

Reference types are the same as dependency types.

In the Asset Reference Relation window, select an asset node and right-click it to open the shortcut menu, then select Open Directory to locate the asset in the System Explorer. Select Find Asset to locate the asset in the Engine’s Resource Preview window.

image-20230718143140560

Exporting Assets

In the Resource Preview window, select an asset and right-click to open the shortcut menu, then select Asset Export to bring up the Select Directory window to confirm the export directory.

image-20230718142654074

image-20230718143852341

After confirmation, the asset and the assets it depends on will be exported to the specified folder.

image-20230718144133817

Moving Assets

In the Resource Preview window, select an asset/multiple assets, drag it/them into a folder, and the following window will pop up:

No.NameDescription
1CopyCopy the selected file to the target folder.
2MoveMove the selected file into the target folder and modify the assets that reference this asset at the same time.
3CancelCancel moving.

Currently, assets moving abide by the following rules:

  1. If there is an implicit reference relationship between assets A and B, moving asset A or B will automatically move the other asset (asset A or B) as well and maintain the relative path relationship.

  2. If there is a explicit reference relationship between assets A and B, moving asset A or B will only move that one rather than both.

  3. If the asset to be moved is being referenced by the currently edited Level, a Assets Cannot Be Moved box will pop up (as shown below). Please create a new Empty Level and then move it again.

  4. If any other asset editor is currently open when moving, a Message Prompt box will pop up (as shown below). In this case, please close all open asset editors and try again.

    image-20231113140414282

  5. If the currently selected asset has the Read-Only property, a Message Prompt box will pop up (as shown below). Click the Yes button, the Read-Only property of the asset will be removed first, and then the movement will be performed.

    image-20230718152333166

Replacing Assets

In the Resource Preview window, select an asset to be replaced, right-click to open the shortcut menu, and select Asset Replace.

image-20231109111847188

In the pop-up Select Document window, select an asset (the new asset) to replace with and click the OK button.

image-20231109112239097

At this point, a Message Prompt box will pop up, which shows a reference of the asset to be replaced (the old asset). You can click Replace to replace the asset, and replace the reference relationship from the old asset to the new one.

image-20231109131842663

The reference relationship of the replaced asset (the old asset) (See Referencing Assets in this documentation for details on how to view asset reference relationships):


Before replacement

After replacement

The reference relationship of the asset (the new asset) to replace with:


Before replacement

After replacement

Replacement is prohibited if the following conditions exist when replacing assets:

  1. When replacing, a Message Prompt box will pop up if the replaced asset is referenced by the currently edited level (as shown below).

    image-20231109144114196

  2. If any of the asset editors is open when replacing, a Message Prompt box will pop up (as shown below). Please close all open asset editors and try again.

    image-20231109153547833

  3. When replacing, if there are assets cannot be moved in the reference of the asset to be replaced, a Message Prompt box will pop up (as shown below).

    image-20231109150708223

  4. When replacing, if there is an implicit reference in the reference of the asset to be replaced, a Message Prompt box pops up (as shown below).

    image-20231109152904403

  5. When replacing, if there is a Read-only asset in the reference of the asset to be replaced, a Message Prompt box will pop up (as shown below). Clicking the Yes button will remove the Read-only property of the asset first, and then perform the replacement.

    image-20231109160524841

Asset Registries

When started, the Engine Editor will automatically collect and analyze the reference relationships of the assets in the Project and organize a small database (Asset Registry) in memory.

Building Asset Registries

It takes roughly 3 steps to create an Asset Registry:

  1. Collect all the assets in the res directory and the script directory under the Project, the exposed asset list of the Engine, and the last modification time of the collected assets.

    This step may take a long time in large projects, for which we recommend:

    a. Store the project in SSD.

    b. Install Everything (above 1.4.1 version)(Download here: https://www.voidtools.com/). After installation, click Configuration -> Editor Settings in the Editor, then click Editor Preferences Settings in the Editor Settings window, and make sure Enable Everything SDK Acceleration is turned on ( it is enabled by default ) in the right interface.

    image-20230718151251229

  2. Analyze the reference relationships of the assets collected in step 1 (For the analysis of the asset reference relationships here, all files will be analyzed only when the project is opened for the first time, and when the project is opened again subsequently, the asset reference analysis will be incremental analysis).

  3. Use the asset list and reference relationships collected in steps 1 and step 2 to create an Asset Registry.

Using SVN as the Version Control Software

Make sure the asset to be operated is under SVN's version control and has been checked out to a local directory. This operation is not currently supported by the Engine and needs to be done by using an external tool (such as TortoiseSVN).

Configuring

After starting the Engine, click Config -> Editor Settings to open the Editor Settings window.

image-20230823094044016

In Editor Preferences Settings of the Editor Settings window, check Enable Version Control, select Version Control Type as SVN, and select the path where the SVN Command Line Tool is located.

image-20230823130500233

After configuring, close the Editor Settings window and a restart prompt will appear. After restarting, operating assets in the Resource Preview window will synchronize SVN operations, and each asset will have a [Corner Mark](#Corner Marks) that is under version control.

133324169931455729.png

Right-click an asset in the Resource Preview window to open the Shortcut Menu, and you can see Source Control contains Refresh Status and Add.

image-20230823103307553

Menu ItemDescription
Refresh StatusRefresh the version control status of the current asset.
AddAdd the asset to version control.

Corner Marks

: Regular asset (An asset that has not been modified locally since the last update).

: New asset (An asset that is to be added to version control).

: Edited asset.

: Asset that is not under version control.

New Assets

When creating a new asset or importing an asset in the Resource Preview window, the asset will be automatically added to version control with the corner mark added.png.

image-20230823104103274

Deleting Assets

Deleting assets in the Resource Preview window (by selecting Delete from the Right-click Menu or by pressing the Delete key) will automatically mark them as deleted in SVN.

Synchronizing (Updating) Assets

This operation is not currently supported by the Engine and needs to be done by using an external tool (such as TortoiseSVN).

Committing Assets

This operation is not currently supported by the Engine and needs to be done by using an external tool (such as TortoiseSVN).