import_texture_file
Import PNG, JPG, or TGA image files into Unreal Engine UTexture2D assets. Saves and verifies the new texture, returning its asset path, width, and height.
Instructions
Import an external image file (PNG/JPG/TGA/...) into a UTexture2D asset. Uses the legacy UTextureFactory path (no Interchange). The new texture is saved to disk and verified by loading it back; the response reports the resulting asset_path, width and height.
Returns: { file_path: string, package_path: string, asset_path: string, asset_name: string, width: int, height: int, imported: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the source image on disk. | |
| asset_name | No | Optional destination asset name (default = source file stem). | |
| package_path | Yes | Destination content folder, e.g. /Game/Imported. | |
| replace_existing | No | bool, replace an asset at the destination path (default true). |