Import and tasks
3 tools for working with import and tasks.
Split by whether they change your project. Read-only tools are always safe to try.
Reading
- Task List — Recent long-running tasks, newest first, with their state.
- Task Status — Poll a long-running task. Returns its state, elapsed time, and the result once it has finished. Finished tasks are retained for a while, so polling slightly late still gets the answer.
Writing
- 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.