Skip to content
Jigwright

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_assetWrite

Arguments

NameTypeDescription
destinationreqstringContent folder to import into, e.g. /Game/Biomes/Desert/Rock. Must be under /Game/.
filereqstringAbsolute path to the source file on disk.
namestringOptional asset name. Defaults to the source file's name.
replace_existingboolean
= false
Overwrite an asset of the same name if one is already there.

Also in Import and tasks: