Import Asset
Import a source file (.glb, .gltf, .fbx, .obj, images) into /Game/ via Interchange. Returns a TASK ID immediately rather than blocking, because a large mesh takes minutes. Poll with hf_task_status. Do NOT call this again while the task is running - that would import twice.
hf_import_assetWriteArguments
| Name | Type | Description |
|---|---|---|
destinationreq | string | Content folder to import into, e.g. /Game/Biomes/Desert/Rock. Must be under /Game/. |
filereq | string | Absolute path to the source file on disk. |
name | string | Optional asset name. Defaults to the source file's name. |
replace_existing | boolean = false | Overwrite an asset of the same name if one is already there. |
Related tools
Also in Import and tasks: