unreal_import_asset
Import FBX, OBJ, or texture files directly into Unreal Engine's content browser, replacing existing assets if needed. Automates the import pipeline for immediate use in your project.
Instructions
Import a file from disk (FBX, OBJ, texture) into the project's content browser.
Runs Unreal's automated import pipeline, so no import dialog appears. With
replace_existing=True this overwrites an asset of the same name in the
destination folder.
Args: params (ImportAssetInput): Validated input containing: - source_file (str): Absolute path to the file on disk - destination_path (str): Content folder, must start with /Game - replace_existing (bool): Overwrite same-named assets (default True) - save (bool): Save to disk right away (default True)
Returns: str: JSON with the following schema: { "imported_count": int, # Number of assets created "imported": [str], # Object paths of the new assets "destination": str # Folder they landed in } On failure: "Error: " — including a clear message when the source file does not exist on the machine running the editor.
Examples: - Use when: "bring this FBX into Unreal" -> source_file set to the .fbx - Use when: staging a model before placing it with unreal_spawn_actor - Don't use when: the asset is already in the project (use unreal_list_assets)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |